File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1031,7 +1031,7 @@ func (proxier *Proxier) syncProxyRules() {
1031
1031
// If the "external" IP happens to be an IP that is local to this
1032
1032
// machine, hold the local port open so no other process can open it
1033
1033
// (because the socket might open but it would never work).
1034
- if localAddrSet . Len () > 0 && (svcInfo .Protocol () != v1 .ProtocolSCTP ) && localAddrSet .Has (net .ParseIP (externalIP )) {
1034
+ if (svcInfo .Protocol () != v1 .ProtocolSCTP ) && localAddrSet .Has (net .ParseIP (externalIP )) {
1035
1035
lp := utilproxy.LocalPort {
1036
1036
Description : "externalIP for " + svcNameString ,
1037
1037
IP : externalIP ,
Original file line number Diff line number Diff line change @@ -1220,7 +1220,7 @@ func (proxier *Proxier) syncProxyRules() {
1220
1220
// If the "external" IP happens to be an IP that is local to this
1221
1221
// machine, hold the local port open so no other process can open it
1222
1222
// (because the socket might open but it would never work).
1223
- if localAddrSet . Len () > 0 && (svcInfo .Protocol () != v1 .ProtocolSCTP ) && localAddrSet .Has (net .ParseIP (externalIP )) {
1223
+ if (svcInfo .Protocol () != v1 .ProtocolSCTP ) && localAddrSet .Has (net .ParseIP (externalIP )) {
1224
1224
// We do not start listening on SCTP ports, according to our agreement in the SCTP support KEP
1225
1225
lp := utilproxy.LocalPort {
1226
1226
Description : "externalIP for " + svcNameString ,
You can’t perform that action at this time.
0 commit comments