diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 407c9e60d79..f10e3254c01 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -478,7 +478,7 @@ func isIPv6Endpoint(e *v1.Endpoints) bool { continue } // Endpoints are single family, so it is enough to check only one address - return netutils.IsIPv6String(sub.Addresses[0].IP) + return netutils.IsIPv6String(addr.IP) } } // default to IPv4 an Endpoint without IP addresses