Skip to content

Commit

Permalink
net: make GODEBUG=netdns=cgo force cgo as documented
Browse files Browse the repository at this point in the history
It wasn't working. The wrong variable was used.

This would ideally have tests. It's also DEBUG.

Fixes golang#11816

Change-Id: Iec42d229b81d78cece4ba5c73f3040e2356eb98f
Reviewed-on: https://go-review.googlesource.com/12544
Run-TryBot: Brad Fitzpatrick <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
bradfitz committed Jul 23, 2015
1 parent dcc905e commit 17befdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func initConfVal() {
_, localDomainDefined := syscall.Getenv("LOCALDOMAIN")
if os.Getenv("RES_OPTIONS") != "" ||
os.Getenv("HOSTALIASES") != "" ||
netCgo ||
confVal.netCgo ||
localDomainDefined {
confVal.forceCgoLookupHost = true
return
Expand Down

0 comments on commit 17befdc

Please sign in to comment.