From: <los...@us...> - 2007-02-11 23:22:02
|
Revision: 547 http://svn.sourceforge.net/fail2ban/?rev=547&view=rev Author: lostcontrol Date: 2007-02-11 15:21:56 -0800 (Sun, 11 Feb 2007) Log Message: ----------- - Display the IP list correctly Modified Paths: -------------- trunk/client/beautifier.py Modified: trunk/client/beautifier.py =================================================================== --- trunk/client/beautifier.py 2007-02-11 23:19:32 UTC (rev 546) +++ trunk/client/beautifier.py 2007-02-11 23:21:56 UTC (rev 547) @@ -68,13 +68,18 @@ msg = "Added jail " + response elif inC[0:1] == ['status']: if len(inC) > 1: + # Create IP list + ipList = "" + for ip in response[1][1][2][1]: + ipList += ip + " " + # Display information 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][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" - msg = msg + " | `- " + response[1][1][2][0] + ":\t" + `response[1][1][2][1]` + "\n" + msg = msg + " | `- " + response[1][1][2][0] + ":\t" + ipList + "\n" msg = msg + " `- " + response[1][1][1][0] + ":\t" + `response[1][1][1][1]` else: msg = "Status\n" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |