Skip to content

Commit

Permalink
gh-681: For fullNAT use privateIP if available
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed May 30, 2024
1 parent 453ada4 commit d5398bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/loxinet/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ func (R *RuleH) electEPSrc(r *ruleEnt) bool {
} else if na.mode == cmn.LBModeFullNAT {
mode = "fullnat"
if !mh.has.IsCIKAMode() {
sip = r.tuples.l3Dst.addr.IP.Mask(r.tuples.l3Dst.addr.Mask)
sip = r.RuleVIP2PrivIP()
if np.xIP.Equal(sip) {
sip = net.IPv4(0, 0, 0, 0)
} else if utils.IsIPHostAddr(np.xIP.String()) {
Expand Down

0 comments on commit d5398bd

Please sign in to comment.