diff options
| author | Mikio Hara <mikioh.mikioh@gmail.com> | 2017-04-14 17:43:42 +0900 |
|---|---|---|
| committer | Mikio Hara <mikioh.mikioh@gmail.com> | 2017-04-15 22:22:09 +0000 |
| commit | 6694a6888b7d3740b402cd3a2b7534e4d2d45c12 (patch) | |
| tree | f29f85ccae36edfcfb9c9238e9b8f6f2b505290e /src/net/error_test.go | |
| parent | bc2931372243043842161c0a60bd2f86ef9696ee (diff) | |
| download | go-6694a6888b7d3740b402cd3a2b7534e4d2d45c12.tar.xz | |
net: delay IP protocol stack-snooping system calls
This change delays IP protocol stack-snooping system calls until the
start of connection setup for the better experience with some system
call auditing, such as seccomp on Linux. See #16789 for examples.
Also updates the documentation on favoriteAddrFamily, which is the
owner of stack-snooping system calls.
Fixes #16789.
Change-Id: I4af27bc1ed06ffb1f657b6f6381c328c1f41c66c
Reviewed-on: https://go-review.googlesource.com/40750
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/net/error_test.go')
| -rw-r--r-- | src/net/error_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/error_test.go b/src/net/error_test.go index 61abfae5f0..021968b079 100644 --- a/src/net/error_test.go +++ b/src/net/error_test.go @@ -214,7 +214,7 @@ func TestDialAddrError(t *testing.T) { case "nacl", "plan9": t.Skipf("not supported on %s", runtime.GOOS) } - if !supportsIPv4 || !supportsIPv6 { + if !supportsIPv4() || !supportsIPv6() { t.Skip("both IPv4 and IPv6 are required") } |
