From: Sergey Matveev Date: Tue, 17 Feb 2026 12:22:22 +0000 (+0300) Subject: meta4ra-url-sort -6 X-Git-Tag: v1.1.0^0 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c888156a424dbaadab05dd4997908019463f1cd3;p=meta4ra.git meta4ra-url-sort -6 --- 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 ...]