From 55a0ea30afb18ca92538528c23d675d67ef98796 Mon Sep 17 00:00:00 2001 From: Thuban <thuban@yeuxdelibad.net> Date: Thu, 13 Apr 2017 09:33:38 +0000 Subject: [PATCH] pop inutile --- vilain.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/vilain.py b/vilain.py index 27e1313..6cfa7f1 100755 --- a/vilain.py +++ b/vilain.py @@ -35,7 +35,7 @@ if os.geteuid() != 0: print("Only root can use this tool") - sys.exit() + sys.exit(1) # Configure logging logger = logging.getLogger(__name__) @@ -176,7 +176,6 @@ if n_ip >= maxtries: ret = subprocess.call(["pfctl", "-t", self.vilain_table, "-T", "add", ip]) logger.info("Blacklisting {}, return code:{}".format(ip, ret)) - self.ip_seen_at.pop(ip) #for debugging, this line allow us to see if the script run until here logger.debug('ban_ips end:{}'.format(self.ip_seen_at)) -- Gitblit v1.9.3