mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Remove un-used function
This commit is contained in:
parent
6ad09dc418
commit
a05b04ad96
@ -2063,21 +2063,6 @@ func (proxier *Proxier) isIPInExcludeCIDRs(ip net.IP) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (proxier *Proxier) getLegacyBindAddr(activeBindAddrs map[string]bool, currentBindAddrs []string) map[string]bool {
|
|
||||||
legacyAddrs := make(map[string]bool)
|
|
||||||
isIPv6 := netutils.IsIPv6(proxier.nodeIP)
|
|
||||||
for _, addr := range currentBindAddrs {
|
|
||||||
addrIsIPv6 := netutils.IsIPv6(netutils.ParseIPSloppy(addr))
|
|
||||||
if addrIsIPv6 && !isIPv6 || !addrIsIPv6 && isIPv6 {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
if _, ok := activeBindAddrs[addr]; !ok {
|
|
||||||
legacyAddrs[addr] = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return legacyAddrs
|
|
||||||
}
|
|
||||||
|
|
||||||
func getIPFamily(ip net.IP) v1.IPFamily {
|
func getIPFamily(ip net.IP) v1.IPFamily {
|
||||||
if netutils.IsIPv4(ip) {
|
if netutils.IsIPv4(ip) {
|
||||||
return v1.IPv4Protocol
|
return v1.IPv4Protocol
|
||||||
|
Loading…
Reference in New Issue
Block a user