diff --git a/misc/address.go b/misc/address.go index 049084e9..65666772 100644 --- a/misc/address.go +++ b/misc/address.go @@ -25,7 +25,7 @@ func SanitizeIPv6Address(addr string) string { switch { case strings.HasPrefix(addr, "ipv6@"), strings.HasPrefix(addr, "udp6@"), - strings.HasPrefix(addr, "quicv6@"): + strings.HasPrefix(addr, "quic6@"): addrSlice := strings.SplitN(addr, "@", 2) if strings.HasPrefix(addrSlice[1], "[") { return addr @@ -60,7 +60,7 @@ func ParseBindAddress(path string) (string, string, error) { // ipv6 address and port is mandatory case strings.HasPrefix(path, "ipv6@"), strings.HasPrefix(path, "udp6@"), - strings.HasPrefix(path, "quicv6@"), + strings.HasPrefix(path, "quic6@"), strings.HasPrefix(path, "["), strings.Count(path, ":") > 1: @@ -95,7 +95,7 @@ func ParseBindAddress(path string) (string, string, error) { // ipv4 address and port is mandatory case strings.HasPrefix(path, "ipv4@"), strings.HasPrefix(path, "udp4@"), - strings.HasPrefix(path, "quicv4@"): + strings.HasPrefix(path, "quic4@"): pathSlice := strings.SplitN(path, "@", 2) prefix := ""