Skip to content

Commit

Permalink
Fix debug log messages to use correct parameter for insert
Browse files Browse the repository at this point in the history
  • Loading branch information
bephinix committed May 27, 2020
1 parent d5639ce commit 1080480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (fw *Firewall) EnsureRules(rules *Ruleset) error {
return err
}
if fw.debug {
log.Println("rule added: -t", string(rule.tc.table), "-A", string(rule.tc.chain), len(fw.activeRules[rule.tc])+1, strings.Join(rule.spec, " "))
log.Println("rule added: -t", string(rule.tc.table), "-I", string(rule.tc.chain), len(fw.activeRules[rule.tc])+1, strings.Join(rule.spec, " "))
}
}
fw.activateRule(rule)
Expand All @@ -214,7 +214,7 @@ func (fw *Firewall) EnsureRules(rules *Ruleset) error {
return err
}
if fw.debug {
log.Println("rule added: -t", string(rule.tc.table), "-A", string(rule.tc.chain), 1, strings.Join(rule.spec, " "))
log.Println("rule added: -t", string(rule.tc.table), "-I", string(rule.tc.chain), 1, strings.Join(rule.spec, " "))
}
}
fw.activateRule(rule)
Expand Down

0 comments on commit 1080480

Please sign in to comment.