Skip to content

Commit

Permalink
Merge pull request #725 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
gh-48 fullproxy regression fix after masquerading changes
  • Loading branch information
UltraInstinct14 authored Jul 10, 2024
2 parents cac1dfe + fab3703 commit f04ebce
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pkg/loxinet/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,9 @@ func (R *RuleH) AddNatLbRule(serv cmn.LbServiceArg, servSecIPs []cmn.LbSecIPArg,
r.tuples = rt
r.zone = R.zone
r.name = serv.Name
if serv.Mode == cmn.LBModeFullNAT || serv.Mode == cmn.LBModeOneArm || serv.Mode == cmn.LBModeHostOneArm {
if serv.Snat {
r.act.actType = RtActSnat
} else if serv.Mode == cmn.LBModeFullNAT || serv.Mode == cmn.LBModeOneArm || serv.Mode == cmn.LBModeHostOneArm {
r.act.actType = RtActFullNat
} else if serv.Mode == cmn.LBModeFullProxy {
r.act.actType = RtActFullProxy
Expand All @@ -1583,11 +1585,7 @@ func (R *RuleH) AddNatLbRule(serv cmn.LbServiceArg, servSecIPs []cmn.LbSecIPArg,
r.hChk.prbRetries = serv.ProbeRetries
r.hChk.prbTimeo = serv.ProbeTimeout
r.hChk.actChk = serv.Monitor
if serv.Snat {
r.act.actType = RtActSnat
} else {
r.act.actType = RtActDnat
}

r.act.action = &natActs
r.ruleNum, err = R.tables[RtLB].Mark.GetCounter()
if err != nil {
Expand Down

0 comments on commit f04ebce

Please sign in to comment.