mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Merge pull request #16137 from ArtfulCoder/externalIPFix
release NodePort correctly
This commit is contained in:
commit
06113d3b87
@ -655,7 +655,7 @@ func (proxier *Proxier) closeOnePortal(portal portal, protocol api.Protocol, pro
|
|||||||
if local, err := isLocalIP(portal.ip); err != nil {
|
if local, err := isLocalIP(portal.ip); err != nil {
|
||||||
el = append(el, fmt.Errorf("can't determine if IP is local, assuming not: %v", err))
|
el = append(el, fmt.Errorf("can't determine if IP is local, assuming not: %v", err))
|
||||||
} else if local {
|
} else if local {
|
||||||
if err := proxier.releaseNodePort(nil, portal.port, protocol, name); err != nil {
|
if err := proxier.releaseNodePort(portal.ip, portal.port, protocol, name); err != nil {
|
||||||
el = append(el, err)
|
el = append(el, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user