summaryrefslogtreecommitdiff
path: root/src/net/conf_test.go
diff options
context:
space:
mode:
authorMateusz Poliwczak <mpoliwczak34@gmail.com>2022-11-17 08:49:32 +0000
committerGopher Robot <gobot@golang.org>2022-11-17 21:42:39 +0000
commit3e5c2c155645ebaed62e4481430c455045b0fff5 (patch)
tree9cfc0a59ad7411ed1e149e59afc9be09ba7278e3 /src/net/conf_test.go
parent1f4394a0c92697896735a5c0135dfde1be9f42bd (diff)
downloadgo-git-3e5c2c155645ebaed62e4481430c455045b0fff5.tar.gz
net: return errNoSuchHost when no entry found in /etc/hosts and order is hostLookupFiles
When /etc/nsswitch.conf lists: "hosts: files" then LookupHost returns two nils when no entry inside /etc/hosts is found. Change-Id: I96d68a079dfe009655c84cf0e697ce19a5bb6698 GitHub-Last-Rev: 894f066bbcc7c975f1975bd0d1dcb5726f590bc5 GitHub-Pull-Request: golang/go#56747 Reviewed-on: https://go-review.googlesource.com/c/go/+/450875 Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Joedian Reid <joedian@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/net/conf_test.go')
-rw-r--r--src/net/conf_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/conf_test.go b/src/net/conf_test.go
index 9228b34a39..3736709295 100644
--- a/src/net/conf_test.go
+++ b/src/net/conf_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build unix
package net