mirror of
https://github.com/golang/go
synced 2024-11-19 21:04:43 -07:00
21ed40c8cb
This change makes use of the socktest package instead of the non-thread safe variable syscall.SocketDisableIPv6 for simulating unreachable external networks. Also adds -ipv4 flag, -ipv6 flag already exists, as a control knob for testing on each of IPv4-only, IPv6-only and dual IP stack kernels. Fixes #7687. Change-Id: I82002007fd526e8cf4de207f935e721df049a22f Reviewed-on: https://go-review.googlesource.com/8390 Reviewed-by: Ian Lance Taylor <iant@golang.org>
16 lines
336 B
Go
16 lines
336 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
|
|
|
|
func installTestHooks() {}
|
|
|
|
func uninstallTestHooks() {}
|
|
|
|
func forceCloseSockets() {}
|
|
|
|
func enableSocketConnect() {}
|
|
|
|
func disableSocketConnect(network string) {}
|