Skip to content

Commit 729890d

Browse files
committed
TUN-6011: Remove docker networks from ICMP Proxy test
1 parent 31f424d commit 729890d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ingress/origin_icmp_proxy_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,15 +390,16 @@ func getLocalIPs(t *testing.T, ipv4 bool) []netip.Addr {
390390
require.NoError(t, err)
391391
localIPs := []netip.Addr{}
392392
for _, i := range interfaces {
393-
// Skip TUN devices
394-
if strings.Contains(i.Name, "tun") {
393+
// Skip TUN devices, and Docker Networks
394+
if strings.Contains(i.Name, "tun") || strings.Contains(i.Name, "docker") || strings.HasPrefix(i.Name, "br-") {
395395
continue
396396
}
397397
addrs, err := i.Addrs()
398398
require.NoError(t, err)
399399
for _, addr := range addrs {
400400
if ipnet, ok := addr.(*net.IPNet); ok && (ipnet.IP.IsPrivate() || ipnet.IP.IsLoopback()) {
401-
if (ipv4 && ipnet.IP.To4() != nil) || (!ipv4 && ipnet.IP.To4() == nil) {
401+
// TODO DEVTOOLS-12514: We only run the IPv6 against the loopback interface due to issues on the CI runners.
402+
if (ipv4 && ipnet.IP.To4() != nil) || (!ipv4 && ipnet.IP.To4() == nil && ipnet.IP.IsLoopback()) {
402403
localIPs = append(localIPs, netip.MustParseAddr(ipnet.IP.String()))
403404
}
404405
}

0 commit comments

Comments
 (0)