diff options
author | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-08-04 21:46:18 +0300 |
---|---|---|
committer | Evgeny Khramtsov <ekhramtsov@process-one.net> | 2019-08-04 21:46:18 +0300 |
commit | 2168489ddf96a88d4b4885a1a0a986acb25754c5 (patch) | |
tree | 6eb6aa952467a4b30977d603cd05c6644c259893 /src/mod_fail2ban.erl | |
parent | Use tagged version for yconf as well (diff) |
Don't retain module option on gen_mod supervisor
When module's options were updated (e.g. by reloading ejabberd.yml)
and, later, the module's process crashed, gen_mod supervisor
restarts the process with outdated options. This is now fixed.
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 9bf5ebfeb..7c5cf374e 100644 --- a/src/mod_fail2ban.erl +++ b/src/mod_fail2ban.erl @@ -128,7 +128,7 @@ depends(_Host, _Opts) -> %%%=================================================================== %%% gen_server callbacks %%%=================================================================== -init([Host, _Opts]) -> +init([Host|_]) -> process_flag(trap_exit, true), ejabberd_hooks:add(c2s_auth_result, Host, ?MODULE, c2s_auth_result, 100), ejabberd_hooks:add(c2s_stream_started, Host, ?MODULE, c2s_stream_started, 100), |