aboutsummaryrefslogtreecommitdiff
path: root/src/net/dnsclient_unix.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2015-12-17 18:14:52 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2015-12-17 18:43:12 +0000
commit807c6c58fc7de3cdabe41d71c9e18ddaa1870cab (patch)
tree3c89eeb03a8819bc97612f6b49b9536da5e0f75d /src/net/dnsclient_unix.go
parentd270a6794b662db0735b34d244fffb63430aa471 (diff)
downloadgo-807c6c58fc7de3cdabe41d71c9e18ddaa1870cab.tar.gz
go-807c6c58fc7de3cdabe41d71c9e18ddaa1870cab.zip
net: fix the build even harder
Should fix nacl. Follow-up to https://golang.org/cl/17936 (fix race) and https://golang.org/cl/17914 (fix build) for https://golang.org/cl/16953 (broke the build) Third time's a charm. Change-Id: I23930d5cff4235209546952ce2231f165ab5bf8a Reviewed-on: https://go-review.googlesource.com/17939 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/net/dnsclient_unix.go')
-rw-r--r--src/net/dnsclient_unix.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/dnsclient_unix.go b/src/net/dnsclient_unix.go
index 15a4081835..17188f0024 100644
--- a/src/net/dnsclient_unix.go
+++ b/src/net/dnsclient_unix.go
@@ -29,6 +29,8 @@ type dnsDialer interface {
dialDNS(string, string) (dnsConn, error)
}
+var testHookDNSDialer = func(d time.Duration) dnsDialer { return &Dialer{Timeout: d} }
+
// A dnsConn represents a DNS transport endpoint.
type dnsConn interface {
io.Closer