mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Merge pull request #840 from cenobites/mod_ping
Adding ping_ack_timeout in mod_opt_type configuration
This commit is contained in:
commit
0e29307ad5
@ -255,6 +255,8 @@ cancel_timer(TRef) ->
|
||||
mod_opt_type(iqdisc) -> fun gen_iq_handler:check_type/1;
|
||||
mod_opt_type(ping_interval) ->
|
||||
fun (I) when is_integer(I), I > 0 -> I end;
|
||||
mod_opt_type(ping_ack_timeout) ->
|
||||
fun (I) when is_integer(I), I > 0 -> I end;
|
||||
mod_opt_type(send_pings) ->
|
||||
fun (B) when is_boolean(B) -> B end;
|
||||
mod_opt_type(timeout_action) ->
|
||||
@ -262,4 +264,4 @@ mod_opt_type(timeout_action) ->
|
||||
(kill) -> kill
|
||||
end;
|
||||
mod_opt_type(_) ->
|
||||
[iqdisc, ping_interval, send_pings, timeout_action].
|
||||
[iqdisc, ping_interval, ping_ack_timeout, send_pings, timeout_action].
|
||||
|
Loading…
Reference in New Issue
Block a user