]> Cypherpunks repositories - gostls13.git/commit
net: force LookupAddr results to be rooted DNS paths even in the case of local source
authorMikio Hara <mikioh.mikioh@gmail.com>
Fri, 27 Nov 2015 03:09:14 +0000 (12:09 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Sat, 28 Nov 2015 08:43:55 +0000 (08:43 +0000)
commit4d6a69f22790d0e9358b940da0bb86cef1e93777
tree94c625806b4960128bcea3152112323a703aa123
parenta0233fdbdae82de924ea2a20bd575ef08dc38001
net: force LookupAddr results to be rooted DNS paths even in the case of local source

The builtin name resolver using various resolution techniques is a bit
complicated and we sometimes fotget to take care of all the go and cgo
code paths and exchanging information to local and remote sources. This
change makes LookupAddr return absolute domain names even in the case of
local source.

Updates #12189.
Fixes #12240.

Change-Id: Icdd3375bcddc7f5d4d3b24f134d93815073736fc
Reviewed-on: https://go-review.googlesource.com/17216
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/cgo_unix.go
src/net/dnsclient.go
src/net/hosts.go
src/net/hosts_test.go
src/net/lookup_test.go
src/net/non_unix_test.go
src/net/unix_test.go