Commit de40a65b by Bach Dániel

firewall: fix ipset()

parent c18d5a8c
......@@ -130,8 +130,8 @@ class BuildFirewall:
def ipset():
week = - timedelta(days=2)
filter_ban = (Q(type='tempban', modified_at__gte=week) |
Q(type='permban')).values('ipv4', 'reason')
return Blacklist.objects.filter(filter_ban)
return Blacklist.objects.filter(filter_ban).values('ipv4', 'reason')
def ipv6_to_octal(ipv6):
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