net: duplicated code of resolution of hosts in internetAddrList
#20767
Labels
Milestone
internetAddrList
#20767
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: