]> Cypherpunks repositories - gostls13.git/commit
net: rewrite and simplify resolver configuration
authorIan Lance Taylor <iant@golang.org>
Thu, 20 Apr 2023 23:55:13 +0000 (16:55 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 27 Apr 2023 22:26:09 +0000 (22:26 +0000)
commitafe2d2221969c4c7082afdd4791dd8f2540fc684
treea1d08b9b440ec1f93ba03690d9f668cc12f9e172
parent635839a17aeb086b3e1eeba73973aac6ccdb8df2
net: rewrite and simplify resolver configuration

The resulting code behaves mostly the same. There are some minor
differences in error cases when the cgo resolver is not available:
instead of just falling back we keep trying to work out the right
nsswitch.conf order.

Change-Id: I17fadc940528fa2397043ac8f8ed7da3bd7a95c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/487196
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
19 files changed:
src/cmd/go/testdata/script/list_cgo_compiled_importmap.txt
src/net/cgo_stub.go
src/net/cgo_unix.go
src/net/cgo_windows.go [deleted file]
src/net/conf.go
src/net/conf_netcgo.go [deleted file]
src/net/conf_test.go
src/net/error_test.go
src/net/lookup_plan9.go
src/net/lookup_test.go
src/net/lookup_unix.go
src/net/lookup_windows.go
src/net/net.go
src/net/netcgo_off.go [new file with mode: 0644]
src/net/netcgo_on.go [new file with mode: 0644]
src/net/netgo.go [deleted file]
src/net/netgo_netcgo.go [new file with mode: 0644]
src/net/netgo_off.go [new file with mode: 0644]
src/net/netgo_on.go [new file with mode: 0644]