Commit 9e15ca03 by Bach Dániel Committed by Bach Dániel

firewall: fix missing str() in host2vlan()

parent 9f9a260f
......@@ -37,9 +37,9 @@ class Firewall:
return
if self.proto == 6 and host.ipv6:
ipaddr = host.ipv6 + '/112'
ipaddr = str(host.ipv6) + '/112'
else:
ipaddr = host.ipv4
ipaddr = str(host.ipv4)
dport_sport = self.dportsport(rule)
......
......@@ -47,10 +47,10 @@ def reloadtask(type='Host'):
if type in ["Host", "Record", "Domain", "Vlan"]:
cache.add("dns_lock", "true", 30)
if type == "Host":
if type in ["Host", "Vlan"]:
cache.add("dhcp_lock", "true", 30)
if type in ["Host", "Rule", "Firewall"]:
if type in ["Host", "Rule", "Firewall", "Vlan"]:
cache.add("firewall_lock", "true", 30)
if type == "Blacklist":
......
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 sign in to comment