release NodePort correctly

This commit is contained in:
Abhishek Shah 2015-10-22 16:36:52 -07:00
parent f960b05fe1
commit 7c64802f48

View File

@ -656,7 +656,7 @@ func (proxier *Proxier) closeOnePortal(portal portal, protocol api.Protocol, pro
if local, err := isLocalIP(portal.ip); err != nil {
el = append(el, fmt.Errorf("can't determine if IP is local, assuming not: %v", err))
} 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)
}
}