e2e framework util subtle bug checking endpoints

Change-Id: Ied14efcb75a45e3bbd5f76d4ee4c89703161df54
This commit is contained in:
Antonio Ojea 2023-08-16 08:18:11 +00:00
parent b57b2dcfcf
commit 8314122382

View File

@ -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