Browse Source

- Removed IP list in status for failmanager

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@537 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.x
Cyril Jaquier 18 years ago
parent
commit
04e2b6730c
  1. 1
      client/beautifier.py
  2. 12
      server/failmanager.py
  3. 3
      server/filter.py

1
client/beautifier.py

@ -71,7 +71,6 @@ class Beautifier:
msg = "Status for the jail: " + inC[1] + "\n"
msg = msg + "|- " + response[0][0] + "\n"
msg = msg + "| |- " + response[0][1][0][0] + ":\t" + `response[0][1][0][1]` + "\n"
msg = msg + "| | `- " + response[0][1][2][0] + ":\t" + `response[0][1][2][1]` + "\n"
msg = msg + "| `- " + response[0][1][1][0] + ":\t" + `response[0][1][1][1]` + "\n"
msg = msg + "`- " + response[1][0] + "\n"
msg = msg + " |- " + response[1][1][0][0] + ":\t" + `response[1][1][0][1]` + "\n"

12
server/failmanager.py

@ -77,18 +77,6 @@ class FailManager:
finally:
self.__lock.release()
##
# Returns a copy of the IP list.
#
# @return IP list
def getBanList(self):
try:
self.__lock.acquire()
return [m.getIP() for m in self.__failList]
finally:
self.__lock.release()
def addFailure(self, ticket):
self.__lock.acquire()
ip = ticket.getIP()

3
server/filter.py

@ -463,8 +463,7 @@ class Filter(JailThread):
def status(self):
ret = [("Currently failed", self.failManager.size()),
("Total failed", self.failManager.getFailTotal()),
("IP List", self.failManager.getBanList())]
("Total failed", self.failManager.getFailTotal())]
return ret

Loading…
Cancel
Save