mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Merge pull request #119966 from aojea/fixfix
e2e framework util subtle bug checking endpoints
This commit is contained in:
commit
18290bfdc8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user