diff options
Diffstat (limited to 'src/mod_fail2ban.erl')
-rw-r--r-- | src/mod_fail2ban.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_fail2ban.erl b/src/mod_fail2ban.erl index 7c5cf374e..0d2473c15 100644 --- a/src/mod_fail2ban.erl +++ b/src/mod_fail2ban.erl @@ -217,10 +217,10 @@ log_and_disconnect(#{ip := {Addr, _}, lang := Lang} = State, Attempts, UnbanTS) UnbanDate = format_date( calendar:now_to_universal_time(msec_to_now(UnbanTS))), Format = ?T("Too many (~p) failed authentications " - "from this IP address (~s). The address " - "will be unblocked at ~s UTC"), + "from this IP address (~ts). The address " + "will be unblocked at ~ts UTC"), Args = [Attempts, IP, UnbanDate], - ?WARNING_MSG("Connection attempt from blacklisted IP ~s: ~s", + ?WARNING_MSG("Connection attempt from blacklisted IP ~ts: ~ts", [IP, io_lib:fwrite(Format, Args)]), Err = xmpp:serr_policy_violation({Format, Args}, Lang), {stop, ejabberd_c2s:send(State, Err)}. |