net: Dial, Listen and ResolveAddr fail when the ipv6 entry in /etc/hosts has a zone identifier #8243
Labels
Milestone
Comments
To fix this issue, we need to handle zone identifier appropriately at; - cgoLookupIPCNAME in cgo_unix.go, fortunately getaddrinfo returns ipv6 address with zone identifier, - readHosts in hosts.go, it doesn't parse ipv6 address with zone identifier correctly, - resolveInternetAddr in ipsock.go and lookupIP in lookup.go, for now both functions drop ipv6 zone identifier. |
CL https://golang.org/cl/10306 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: