mirror of https://github.com/fail2ban/fail2ban
- Removed IP list in status for failmanager
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@537 a942ae1a-1317-0410-a47c-b1dcaea8d6050.x
parent
126d57ef6c
commit
04e2b6730c
|
@ -71,7 +71,6 @@ class Beautifier:
|
||||||
msg = "Status for the jail: " + inC[1] + "\n"
|
msg = "Status for the jail: " + inC[1] + "\n"
|
||||||
msg = msg + "|- " + response[0][0] + "\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][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[0][1][1][0] + ":\t" + `response[0][1][1][1]` + "\n"
|
||||||
msg = msg + "`- " + response[1][0] + "\n"
|
msg = msg + "`- " + response[1][0] + "\n"
|
||||||
msg = msg + " |- " + response[1][1][0][0] + ":\t" + `response[1][1][0][1]` + "\n"
|
msg = msg + " |- " + response[1][1][0][0] + ":\t" + `response[1][1][0][1]` + "\n"
|
||||||
|
|
|
@ -77,18 +77,6 @@ class FailManager:
|
||||||
finally:
|
finally:
|
||||||
self.__lock.release()
|
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):
|
def addFailure(self, ticket):
|
||||||
self.__lock.acquire()
|
self.__lock.acquire()
|
||||||
ip = ticket.getIP()
|
ip = ticket.getIP()
|
||||||
|
|
|
@ -463,8 +463,7 @@ class Filter(JailThread):
|
||||||
|
|
||||||
def status(self):
|
def status(self):
|
||||||
ret = [("Currently failed", self.failManager.size()),
|
ret = [("Currently failed", self.failManager.size()),
|
||||||
("Total failed", self.failManager.getFailTotal()),
|
("Total failed", self.failManager.getFailTotal())]
|
||||||
("IP List", self.failManager.getBanList())]
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue