Skip to content

Commit

Permalink
Merge pull request #59 from bephinix/fix/invalid-debug-msg-rules-insert
Browse files Browse the repository at this point in the history
Fix Debug Log Messages to use correct Parameter for Insert
  • Loading branch information
robbertkl authored May 27, 2020
2 parents aa99b24 + 1080480 commit 9c683bf
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 9c683bf

Please sign in to comment.