Skip to content

Commit

Permalink
fix(utils.go): static /32 subnet mask reference
Browse files Browse the repository at this point in the history
  • Loading branch information
aauren committed Jul 5, 2024
1 parent 787b906 commit 94b17b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/proxy/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func hairpinRuleFrom(serviceIPs []net.IP, endpointIP string, endpointFamily v1.I
}

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

Expand Down

0 comments on commit 94b17b8

Please sign in to comment.