mirror of
https://github.com/fail2ban/fail2ban.git
synced 2025-11-26 14:20:19 +08:00
small code review and fixing of some bugs during client-server communication process (in the test cases);
This commit is contained in:
@@ -31,7 +31,7 @@ __author__ = "Fail2Ban Developers"
|
||||
__copyright__ = "Copyright (c) 2004-2008 Cyril Jaquier, 2012-2014 Yaroslav Halchenko, 2014-2016 Serg G. Brester"
|
||||
__license__ = "GPL"
|
||||
|
||||
from fail2ban.client.fail2banclient import exec_command_line
|
||||
from fail2ban.client.fail2banclient import exec_command_line, sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
exec_command_line()
|
||||
exec_command_line(sys.argv)
|
||||
|
||||
@@ -31,7 +31,7 @@ __author__ = "Fail2Ban Developers"
|
||||
__copyright__ = "Copyright (c) 2004-2008 Cyril Jaquier, 2012-2014 Yaroslav Halchenko, 2014-2016 Serg G. Brester"
|
||||
__license__ = "GPL"
|
||||
|
||||
from fail2ban.client.fail2banserver import exec_command_line
|
||||
from fail2ban.client.fail2banserver import exec_command_line, sys
|
||||
|
||||
if __name__ == "__main__":
|
||||
exec_command_line()
|
||||
exec_command_line(sys.argv)
|
||||
|
||||
Reference in New Issue
Block a user