diff options
Diffstat (limited to 'libgo/go/net/hook.go')
-rw-r--r-- | libgo/go/net/hook.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgo/go/net/hook.go b/libgo/go/net/hook.go new file mode 100644 index 0000000..9ab34c0 --- /dev/null +++ b/libgo/go/net/hook.go @@ -0,0 +1,12 @@ +// 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() {} +) |