This commit is contained in:
Stefan Midjich 2017-03-07 16:40:02 +01:00
parent d55782eaef
commit a347c187d6

View file

@ -93,7 +93,7 @@ class Client(object):
def commit_rule(self): def commit_rule(self):
rule = find_rule(self.ip_address, self.protocol) rule = self.find_rule(self.ip_address, self.protocol)
if not rule: if not rule:
rule = iptc.Rule() rule = iptc.Rule()
rule.src = self.ip_address rule.src = self.ip_address