Skip to content

Commit

Permalink
typo (#3495)
Browse files Browse the repository at this point in the history
Signed-off-by: changluyi <clyi@alauda.io>
  • Loading branch information
changluyi committed Dec 6, 2023
1 parent aed1be8 commit 57c6a82
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 @@ -540,7 +540,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 {
switch rule.Chain {
Expand All @@ -556,7 +556,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 @@ -597,7 +597,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 57c6a82

Please sign in to comment.