mirror of
https://github.com/golang/go
synced 2024-10-05 07:21:25 -06:00
8cdd7d14ac
https://golang.org/cl/16953 broke the world. Change-Id: I7cbd4105338ff896bd0c8f69a0b126b6272be2e5 Reviewed-on: https://go-review.googlesource.com/17914 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
13 lines
399 B
Go
13 lines
399 B
Go
// Copyright 2015 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package net
|
|
|
|
var (
|
|
testHookDialTCP = dialTCP
|
|
testHookHostsPath = "/etc/hosts"
|
|
testHookLookupIP = func(fn func(string) ([]IPAddr, error), host string) ([]IPAddr, error) { return fn(host) }
|
|
testHookSetKeepAlive = func() {}
|
|
)
|