Skip to content

Commit

Permalink
fix typo (#3494)
Browse files Browse the repository at this point in the history
Signed-off-by: changluyi <[email protected]>
  • Loading branch information
changluyi authored Dec 6, 2023
1 parent 6a939d9 commit 260cca8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/daemon/gateway_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ func (c *Controller) setIptables() error {
}
}

var natPreroutingRules, natPostroutingRules, ovnMasqueradeRules, manglePostrutingRules []util.IPTableRule
var natPreroutingRules, natPostroutingRules, ovnMasqueradeRules, manglePostroutingRules []util.IPTableRule
for _, rule := range iptablesRules {
if rule.Table == NAT {
if c.k8siptables[protocol].HasRandomFully() &&
Expand All @@ -735,7 +735,7 @@ func (c *Controller) setIptables() error {
}
} else if rule.Table == MANGLE {
if rule.Chain == OvnPostrouting {
manglePostrutingRules = append(manglePostrutingRules, rule)
manglePostroutingRules = append(manglePostroutingRules, rule)
continue
}
}
Expand Down Expand Up @@ -789,7 +789,7 @@ func (c *Controller) setIptables() error {
return err
}

if err = c.updateIptablesChain(ipt, MANGLE, OvnPostrouting, Postrouting, manglePostrutingRules); err != nil {
if err = c.updateIptablesChain(ipt, MANGLE, OvnPostrouting, Postrouting, manglePostroutingRules); err != nil {
klog.Errorf("failed to update chain %s/%s: %v", MANGLE, OvnPostrouting, err)
return err
}
Expand Down

0 comments on commit 260cca8

Please sign in to comment.