You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
master
What did you do?
Resolver. internetAddrList() trying first to resolve the host as IPv4 then as IPv6 and only then to parse it with Resolver. LookupIPAddr(). Although, that's exactly what Resolver. LookupIPAddr() do anyway.
Resolver. internetAddrList() should reuse the code by resolving the host only by Resolver. LookupIPAddr()
The text was updated successfully, but these errors were encountered:
AlmogBaku
changed the title
Duplication of lookup for hosts
Duplicated code of resolution of hosts in internetAddrListJun 23, 2017
bradfitz
changed the title
Duplicated code of resolution of hosts in internetAddrList
net: duplicated code of resolution of hosts in internetAddrListJun 23, 2017
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?master
What did you do?
Resolver. internetAddrList()
trying first to resolve the host as IPv4 then as IPv6 and only then to parse it withResolver. LookupIPAddr()
. Although, that's exactly whatResolver. LookupIPAddr()
do anyway.go/src/net/ipsock.go
Line 253 in d8a7990
What did you expect to see?
Resolver. internetAddrList()
should reuse the code by resolving the host only byResolver. LookupIPAddr()
The text was updated successfully, but these errors were encountered: