]> Cypherpunks.ru repositories - gostls13.git/commit
net: permit use of Resolver.PreferGo, netgo on Windows and Plan 9
authorBrad Fitzpatrick <bradfitz@golang.org>
Sat, 28 May 2022 21:06:43 +0000 (14:06 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 30 May 2022 21:23:29 +0000 (21:23 +0000)
commitaf88fb6502ceee973aaa118471c9d953a10a68e5
tree47311985ce8c9f402fab2c2c903cf66fd1d26cf0
parenta21cf916f418d0d48f46d8f256c5994a80558a94
net: permit use of Resolver.PreferGo, netgo on Windows and Plan 9

This reverts commit CL 401754 (440c9312c8) which reverted CL 400654,
thus reapplying CL 400654, re-adding the func init() { netGo = true }
to cgo_stub.go CL 400654 had originally removed (mistakenly during
development?) that had broken the darwin nocgo builder.

Fixes #33097

Change-Id: I90f59746d2ceb6b5d2bd832c9fc90068f8ff7417
Reviewed-on: https://go-review.googlesource.com/c/go/+/409234
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@google.com>
15 files changed:
src/net/addrselect.go
src/net/conf.go
src/net/dnsclient_unix.go
src/net/dnsconfig.go [new file with mode: 0644]
src/net/dnsconfig_unix.go
src/net/dnsconfig_windows.go [new file with mode: 0644]
src/net/lookup.go
src/net/lookup_plan9.go
src/net/lookup_unix.go
src/net/lookup_windows.go
src/net/net.go
src/net/net_fake.go
src/net/netgo.go [new file with mode: 0644]
src/net/nss.go
src/net/resolverdialfunc_test.go [new file with mode: 0644]