- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IPv6Compliant (0.16 sec)
-
pilot/pkg/networking/core/httproute.go
return nil } var domains []string var altHosts []string if svc == nil { if SidecarIgnorePort(node) { domains = []string{util.IPv6Compliant(hostname)} } else { domains = []string{util.IPv6Compliant(hostname), name} } } else { domains, altHosts = generateVirtualHostDomains(svc, listenerPort, vhwrapper.Port, node) } dl := len(domains)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 32.7K bytes - Viewed (0) -
pilot/pkg/networking/util/util.go
for n := b / unit; n >= unit; n /= unit { div *= unit exp++ } return fmt.Sprintf("%.1f%cB", float64(b)/float64(div), "kMGTPE"[exp]) } // IPv6Compliant encloses ipv6 addresses in square brackets followed by port number in Host header/URIs func IPv6Compliant(host string) string { if strings.Contains(host, ":") { return "[" + host + "]" } return host }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 28.5K bytes - Viewed (0) -
pilot/pkg/networking/util/util_test.go
{"127.0.0.1", "127.0.0.1"}, {"::1", "[::1]"}, {"2001:4860:0:2001::68", "[2001:4860:0:2001::68]"}, } for _, tt := range tests { t.Run(fmt.Sprint(tt.host), func(t *testing.T) { if got := IPv6Compliant(tt.host); got != tt.match { t.Fatalf("got %v wanted %v", got, tt.match) } }) } } func TestDomainName(t *testing.T) { tests := []struct { host string port int
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 01:17:58 UTC 2024 - 40K bytes - Viewed (0)