(no title)
rodlette | 2 years ago
Sounds like this bug: "Unable to reliably distinguish IPv4-mapped-IPv6 addresses from regular IPv4 addresses" https://github.com/golang/go/issues/37921 .
Use https://pkg.go.dev/net/netip instead.
rodlette | 2 years ago
Sounds like this bug: "Unable to reliably distinguish IPv4-mapped-IPv6 addresses from regular IPv4 addresses" https://github.com/golang/go/issues/37921 .
Use https://pkg.go.dev/net/netip instead.
p1mrx|2 years ago
I think it's best to treat IPv4-mapped addresses as an implementation detail of the socket API, and not leak them into general purpose code.
Though things get interesting when an external user provides "::ffff:1.2.3.4" as text.