mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 11:18:16 +00:00
fix IPV6 judgement bug and add UTs
This commit is contained in:
@@ -1154,7 +1154,7 @@ func (proxier *Proxier) syncProxyRules() {
|
||||
continue
|
||||
}
|
||||
if lp.Protocol == "udp" {
|
||||
isIPv6 := svcInfo.clusterIP.To4() != nil
|
||||
isIPv6 := utilproxy.IsIPv6(svcInfo.clusterIP)
|
||||
utilproxy.ClearUDPConntrackForPort(proxier.exec, lp.Port, isIPv6)
|
||||
}
|
||||
replacementPortsMap[lp] = socket
|
||||
|
||||
Reference in New Issue
Block a user