run hack/update-netparse-cve.sh

This commit is contained in:
Antonio Ojea
2021-08-20 01:16:14 +02:00
parent e9ddac5d85
commit 0cd75e8fec
159 changed files with 1071 additions and 988 deletions

View File

@@ -18,7 +18,6 @@ package endpointslicemirroring
import (
"fmt"
"net"
"strings"
corev1 "k8s.io/api/core/v1"
@@ -30,6 +29,7 @@ import (
"k8s.io/client-go/tools/leaderelection/resourcelock"
"k8s.io/kubernetes/pkg/apis/discovery/validation"
endpointutil "k8s.io/kubernetes/pkg/controller/util/endpoint"
netutils "k8s.io/utils/net"
)
// addrTypePortMapKey is used to uniquely identify groups of endpoint ports and
@@ -50,7 +50,7 @@ func (pk addrTypePortMapKey) addressType() discovery.AddressType {
}
func getAddressType(address string) *discovery.AddressType {
ip := net.ParseIP(address)
ip := netutils.ParseIPSloppy(address)
if ip == nil {
return nil
}