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
ivanmatmati committed Feb 7, 2024
1 parent 9662488 commit 0245b0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Expand Up @@ -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 := ""
Expand Down

0 comments on commit 0245b0d

Please sign in to comment.