Commit 46cdd740 by Dudás Ádám

firewall: make Firewall class' name start with upper-case

parent dd0841b0
...@@ -10,7 +10,7 @@ from datetime import datetime, timedelta ...@@ -10,7 +10,7 @@ from datetime import datetime, timedelta
from django.db.models import Q from django.db.models import Q
class firewall: class Firewall:
IPV6=False IPV6=False
RULES = None RULES = None
RULES_NAT = [] RULES_NAT = []
......
...@@ -46,8 +46,8 @@ class ReloadTask(Task): ...@@ -46,8 +46,8 @@ class ReloadTask(Task):
if not sleep: if not sleep:
sleep = True sleep = True
time.sleep(10) time.sleep(10)
ipv4 = firewall().get() ipv4 = Firewall().get()
ipv6 = firewall(True).get() ipv6 = Firewall(True).get()
reload_firewall_task.delay(ipv4, ipv6) reload_firewall_task.delay(ipv4, ipv6)
if type == "Blacklist": 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