diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-30 14:17:13 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-30 14:17:13 +0300 |
commit | 7bcbea210800e67045a9a58448a2e695d073246b (patch) | |
tree | 338585281c0893ddb776313cc240ecc2d3853cef /src/mod_fail2ban.erl | |
parent | Merge pull request #1646 from weiss/custom-headers (diff) |
Deprecate jlib.erl in favor of aux.erl
Since the main goal of jlib.erl is lost, all auxiliary functions
are now moved to aux.erl, and the whole jlib.erl is now deprecated.
Diffstat (limited to 'src/mod_fail2ban.erl')
-rw-r--r-- | src/mod_fail2ban.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_fail2ban.erl b/src/mod_fail2ban.erl index 4d5e5fdb4..2dfb98ee5 100644 --- a/src/mod_fail2ban.erl +++ b/src/mod_fail2ban.erl @@ -166,7 +166,7 @@ code_change(_OldVsn, State, _Extra) -> -spec log_and_disconnect(ejabberd_c2s:state(), pos_integer(), non_neg_integer()) -> {stop, ejabberd_c2s:state()}. log_and_disconnect(#{ip := {Addr, _}, lang := Lang} = State, Attempts, UnbanTS) -> - IP = jlib:ip_to_list(Addr), + IP = aux:ip_to_list(Addr), UnbanDate = format_date( calendar:now_to_universal_time(seconds_to_now(UnbanTS))), Format = <<"Too many (~p) failed authentications " |