Brad Fitzpatrick (Gerrit)
unread,Jul 22, 2015, 8:46:52 PM7/22/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Russ Cox, Mikio Hara, Ian Lance Taylor, Brad Fitzpatrick, golang-co...@googlegroups.com
Reviewers: Russ Cox, Mikio Hara
Brad Fitzpatrick uploaded a change:
https://go-review.googlesource.com/12544
net: make GODEBUG=netdns=cgo force cgo as documented
It wasn't working. The wrong variable was used.
This would ideally have tests. It's also DEBUG.
Fixes #11816
Change-Id: Iec42d229b81d78cece4ba5c73f3040e2356eb98f
---
M src/net/conf.go
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/net/conf.go b/src/net/conf.go
index e70178d..01bb585 100644
--- a/src/net/conf.go
+++ b/src/net/conf.go
@@ -80,7 +80,7 @@
_, localDomainDefined := syscall.Getenv("LOCALDOMAIN")
if os.Getenv("RES_OPTIONS") != "" ||
os.Getenv("HOSTALIASES") != "" ||
- netCgo ||
+ confVal.netCgo ||
localDomainDefined {
confVal.forceCgoLookupHost = true
return
--
https://go-review.googlesource.com/12544
Gerrit-Reviewer: Mikio Hara <
mikioh...@gmail.com>
Gerrit-Reviewer: Russ Cox <
r...@golang.org>