mirror of https://github.com/fail2ban/fail2ban
- Fixed banList which must not be static
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@139 a942ae1a-1317-0410-a47c-b1dcaea8d6050.5
parent
6be14566e1
commit
d2f7dc0521
|
@ -37,12 +37,11 @@ class Firewall:
|
||||||
the IP.
|
the IP.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
banList = dict()
|
|
||||||
|
|
||||||
def __init__(self, banRule, unBanRule, banTime):
|
def __init__(self, banRule, unBanRule, banTime):
|
||||||
self.banRule = banRule
|
self.banRule = banRule
|
||||||
self.unBanRule = unBanRule
|
self.unBanRule = unBanRule
|
||||||
self.banTime = banTime
|
self.banTime = banTime
|
||||||
|
self.banList = dict()
|
||||||
|
|
||||||
def addBanIP(self, aInfo, debug):
|
def addBanIP(self, aInfo, debug):
|
||||||
""" Bans an IP.
|
""" Bans an IP.
|
||||||
|
|
Loading…
Reference in New Issue