mirror of
https://github.com/golang/go.git
synced 2025-11-10 05:31:03 +00:00
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>
This commit is contained in:
parent
d270a6794b
commit
807c6c58fc
2 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue