diff options
author | Kevin Krakauer <krakauer@google.com> | 2020-07-08 10:54:23 -0700 |
---|---|---|
committer | Kevin Krakauer <krakauer@google.com> | 2020-07-08 15:14:29 -0700 |
commit | 14ff2ea9bfc83fb37afe8a5e17e8b8173f85eb68 (patch) | |
tree | 1c4611de11ef8877292b2dbe534885b4133a4388 /test/iptables/nat.go | |
parent | 76c7bc51b7b02c4ba83c0a064c3629bb5ee91340 (diff) |
ip6tables: handle both IPv4 and v6 addresses
Enabling IPv6 in Docker caused IPv4 tests to fail because localAddrs
didn't distinguish between address types. Example failure:
https://source.cloud.google.com/results/invocations/203b2401-3333-4bec-9a56-72cc53d68ddd/log
Diffstat (limited to 'test/iptables/nat.go')
-rw-r--r-- | test/iptables/nat.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/iptables/nat.go b/test/iptables/nat.go index 5e54a3963..8562b0820 100644 --- a/test/iptables/nat.go +++ b/test/iptables/nat.go @@ -241,7 +241,7 @@ func (NATPreRedirectIP) Name() string { // ContainerAction implements TestCase.ContainerAction. func (NATPreRedirectIP) ContainerAction(ip net.IP) error { - addrs, err := localAddrs() + addrs, err := localAddrs(false) if err != nil { return err } |