From 104fbae0d97cda6749d5e1974829342aad37ff05 Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 25 Jun 2019 22:16:38 +0200 Subject: [PATCH] [Netfilter] Set some f2boptions to int --- data/Dockerfiles/netfilter/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/Dockerfiles/netfilter/server.py b/data/Dockerfiles/netfilter/server.py index 68652c28..78cafc68 100644 --- a/data/Dockerfiles/netfilter/server.py +++ b/data/Dockerfiles/netfilter/server.py @@ -369,8 +369,8 @@ def autopurge(): while not quit_now: time.sleep(10) refreshF2boptions() - BAN_TIME = f2boptions['ban_time'] - MAX_ATTEMPTS = f2boptions['max_attempts'] + BAN_TIME = int(f2boptions['ban_time']) + MAX_ATTEMPTS = int(f2boptions['max_attempts']) QUEUE_UNBAN = r.hgetall('F2B_QUEUE_UNBAN') if QUEUE_UNBAN: for net in QUEUE_UNBAN: