Commit 5ce75a09 authored by Sigmund Augdal's avatar Sigmund Augdal

Check both source and dest, not dest twice. Thanks to Morten Knutsen for spotting

parent 27643398
......@@ -253,7 +253,7 @@ class Generator(object):
for group, ipset in sorted(self.ip_cidr_groups.items(), key=lambda x: x[0]):
dest = self.set_name(self.group_members_groups[group], family)
source = self.set_name(ipset, family)
if self.group_members[dest] and self.group_members[dest]:
if self.group_members[source] and self.group_members[dest]:
output.write(IPTABLES_CIDR_IP.format(source, dest))
for group in sorted(self.open_groups):
set_name = self.set_name(self.group_members_groups[group], family)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment