diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2015-07-22 17:45:32 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2015-07-23 01:37:15 +0000 |
| commit | 17befdcec01fcd9c629c2cebf3aab5d4b6d70dc7 (patch) | |
| tree | 0316493d1d34c0d60733f69ca3655f904242a201 /src | |
| parent | dcc905ecf9f00c55fbc9848c45f62d677cb9bf29 (diff) | |
| download | go-17befdcec01fcd9c629c2cebf3aab5d4b6d70dc7.tar.xz | |
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
Reviewed-on: https://go-review.googlesource.com/12544
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/net/conf.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/conf.go b/src/net/conf.go index e70178d34c..01bb585ce6 100644 --- a/src/net/conf.go +++ b/src/net/conf.go @@ -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 |
