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