From bf3cd1d56d0c1105134573a729336b1d6091164b Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Mon, 25 Sep 2006 20:46:21 +0000 Subject: [PATCH] - (Re)added permanent banning (banTime < 0) git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@387 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- server/banmanager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/banmanager.py b/server/banmanager.py index 9c89a3fb..e345187a 100644 --- a/server/banmanager.py +++ b/server/banmanager.py @@ -182,6 +182,9 @@ class BanManager: try: self.__lock.acquire() uBList = list() + # Permanent banning + if self.__banTime < 0: + return uBList for ticket in self.__banList: if ticket.getTime() < time - self.__banTime: uBList.append(ticket)