Skip to content

Commit 94b17b8

Browse files
committed
fix(utils.go): static /32 subnet mask reference
1 parent 787b906 commit 94b17b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/proxy/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ func hairpinRuleFrom(serviceIPs []net.IP, endpointIP string, endpointFamily v1.I
454454
}
455455

456456
for _, svcIP := range serviceIPs {
457-
ruleArgs := []string{"-s", endpointIP + "/32", "-d", endpointIP + vipSubnet,
457+
ruleArgs := []string{"-s", endpointIP + vipSubnet, "-d", endpointIP + vipSubnet,
458458
"-m", "ipvs", "--vaddr", svcIP.String(), "--vport", strconv.Itoa(servicePort),
459459
"-j", "SNAT", "--to-source", svcIP.String()}
460460

0 commit comments

Comments
 (0)