Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Mar 27, 2023
1 parent 2d740ff commit 23312f2
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 @@ -554,15 +554,15 @@ func (c *Controller) setIptables() error {
continue
}

var inuse bool
var inUse bool
for name := range subnetCidrs {
if util.ContainsString(util.DoubleQuotedFields(rule), fmt.Sprintf("%s,%s", util.OvnSubnetGatewayIptables, name)) {
inuse = true
inUse = true
break
}
}

if !inuse {
if !inUse {
// rule[11:] skip "-A FORWARD "
if err = deleteIptablesRule(ipt, util.IPTableRule{Table: "filter", Chain: "FORWARD", Rule: util.DoubleQuotedFields(rule[11:])}); err != nil {
klog.Error(err)
Expand Down

0 comments on commit 23312f2

Please sign in to comment.