From c888156a424dbaadab05dd4997908019463f1cd3 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 17 Feb 2026 15:22:22 +0300 Subject: [PATCH] meta4ra-url-sort -6 --- cmd/sort.go | 13 +++++++++++++ internal/common.go | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/cmd/sort.go b/cmd/sort.go index b36f2ba..9a522ee 100644 --- a/cmd/sort.go +++ b/cmd/sort.go @@ -21,6 +21,8 @@ import ( "fmt" "log" "math/rand/v2" + "net" + "net/url" "os" "sort" "strings" @@ -70,6 +72,7 @@ func (by ByCC) Swap(i, j int) { } func runURLSort() { + ipv6 := flag.Bool("6", false, "Only IPv6-capable hostnames") flag.Usage = func() { fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s [options] [cc ...]