Add comments to iptables rules and ipsets

Fixes #2621
This commit is contained in:
Mike Bryant committed 2017-07-17 11:00:08 +01:00
1 parent efde637e1c
commit e10ce2345b
6 files changed
+42 -23

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ func (i *mockIPSet) Create(ipsetName ipset.Name, ipsetType ipset.Type) error {
return nil
}
func (i *mockIPSet) AddEntry(ipsetName ipset.Name, entry string) error {
func (i *mockIPSet) AddEntry(ipsetName ipset.Name, entry string, comment string) error {
log.Printf("adding entry %s to %s", entry, ipsetName)
if _, ok := i.sets[entry]; !ok {
return errors.Errorf("ipset %s does not exist", entry)