Skip to content

Commit

Permalink
BUG: typo in quic version prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
hdurand0710 committed Jan 6, 2025
1 parent de9bab6 commit 43244a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand Down

0 comments on commit 43244a3

Please sign in to comment.