]> Cypherpunks repositories - gostls13.git/commit
net: make LookupIP("1.2.3.4") behavior consistent
authorRuss Cox <rsc@golang.org>
Wed, 24 Jun 2015 12:39:44 +0000 (08:39 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 24 Jun 2015 15:16:36 +0000 (15:16 +0000)
commit222b23aae9213e0ccd442fc4be51b0a27b5621be
treec28848bc76994347e15846d07afcd3d31f6f16ed
parent0dccee6061aad469d196e4abd3eafe53b379275d
net: make LookupIP("1.2.3.4") behavior consistent

To date, the behavior has depended on whether we're using cgo and
in turn what the host resolver does. Most host resolvers will "resolve"
IP addresses, but the non-cgo pure Go path has not.
This CL makes resolution of IP addresses always work, even if we're not using cgo
and even if the host resolver does not "resolve" IP addresses.

Fixes #11335.

Change-Id: I19e82be968154d94904bb2f72e9c17893019a909
Reviewed-on: https://go-review.googlesource.com/11420
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/ip_test.go
src/net/lookup.go