mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
- Fixed bug when flushing ban list
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@54 a942ae1a-1317-0410-a47c-b1dcaea8d605
This commit is contained in:
parent
e8c751bbcc
commit
76f77be795
1 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,8 @@ class Firewall:
|
|||
""" Flushes the ban list and of course the firewall rules.
|
||||
Called when fail2ban exits.
|
||||
"""
|
||||
iterBanList = self.banList.iteritems()
|
||||
banListTemp = self.banList.copy()
|
||||
iterBanList = banListTemp.iteritems()
|
||||
for i in range(len(self.banList)):
|
||||
element = iterBanList.next()
|
||||
ip = element[0]
|
||||
|
|
@ -101,4 +102,3 @@ class Firewall:
|
|||
for i in range(len(self.banList)):
|
||||
element = iterBanList.next()
|
||||
print element
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue