diff --git a/fail2ban/client/beautifier.py b/fail2ban/client/beautifier.py index a92e9520..e58f53ba 100644 --- a/fail2ban/client/beautifier.py +++ b/fail2ban/client/beautifier.py @@ -113,6 +113,12 @@ class Beautifier: elif inC[2] == "logencoding": msg = "Current log encoding is set to:\n" msg = msg + response + elif inC[2] == "datepattern": + msg = "Current date pattern set to: " + if response is None: + msg = msg + "Default Detectors" + else: + msg = msg + "%s (%s)" % response elif inC[2] in ("ignoreip", "addignoreip", "delignoreip"): if len(response) == 0: msg = "No IP address/network is ignored" diff --git a/fail2ban/protocol.py b/fail2ban/protocol.py index 334e7908..fb6c433d 100644 --- a/fail2ban/protocol.py +++ b/fail2ban/protocol.py @@ -64,6 +64,7 @@ protocol = [ ["set delignoreregex ", "removes the regular expression at for ignoreregex"], ["set findtime