]> Cypherpunks repositories - gostls13.git/commit
net: add hostname warnings to all first(isIPv4) functions.
authorPaul Marks <pmarks@google.com>
Tue, 25 Oct 2016 00:49:22 +0000 (17:49 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 25 Oct 2016 04:18:41 +0000 (04:18 +0000)
commit5d8324e6822e34c900e36d67adf640cee6693d25
tree61d6ed4378abd0b18bf7a674ec8e1c7805f12138
parent71cf409dbdcba20f220d65ab83a6494c1f79b2a0
net: add hostname warnings to all first(isIPv4) functions.

In general, these functions cannot behave correctly when given a
hostname, because a hostname may represent multiple IP addresses, and
first(isIPv4) chooses at most one.

Updates #9334

Change-Id: Icfb629f84af4d976476385a3071270253c0000b1
Reviewed-on: https://go-review.googlesource.com/31931
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/dial.go
src/net/iprawsock.go
src/net/tcpsock.go
src/net/udpsock.go