mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-31 15:21:38 +01:00
mod_client_state: Throttle stanzas by default
Enable the mod_client_state options "drop_chat_states" and "queue_presence" by default. These features are now well-tested in practice.
This commit is contained in:
parent
13f7be682d
commit
c0497d46af
@ -577,9 +577,7 @@ modules:
|
|||||||
mod_blocking: {} # requires mod_privacy
|
mod_blocking: {} # requires mod_privacy
|
||||||
mod_caps: {}
|
mod_caps: {}
|
||||||
mod_carboncopy: {}
|
mod_carboncopy: {}
|
||||||
mod_client_state:
|
mod_client_state: {}
|
||||||
drop_chat_states: true
|
|
||||||
queue_presence: false
|
|
||||||
mod_configure: {} # requires mod_adhoc
|
mod_configure: {} # requires mod_adhoc
|
||||||
mod_disco: {}
|
mod_disco: {}
|
||||||
## mod_echo: {}
|
## mod_echo: {}
|
||||||
|
@ -42,11 +42,11 @@ start(Host, Opts) ->
|
|||||||
QueuePresence = gen_mod:get_opt(queue_presence, Opts,
|
QueuePresence = gen_mod:get_opt(queue_presence, Opts,
|
||||||
fun(true) -> true;
|
fun(true) -> true;
|
||||||
(false) -> false
|
(false) -> false
|
||||||
end, false),
|
end, true),
|
||||||
DropChatStates = gen_mod:get_opt(drop_chat_states, Opts,
|
DropChatStates = gen_mod:get_opt(drop_chat_states, Opts,
|
||||||
fun(true) -> true;
|
fun(true) -> true;
|
||||||
(false) -> false
|
(false) -> false
|
||||||
end, false),
|
end, true),
|
||||||
if QueuePresence; DropChatStates ->
|
if QueuePresence; DropChatStates ->
|
||||||
ejabberd_hooks:add(c2s_post_auth_features, Host, ?MODULE,
|
ejabberd_hooks:add(c2s_post_auth_features, Host, ?MODULE,
|
||||||
add_stream_feature, 50),
|
add_stream_feature, 50),
|
||||||
|
Loading…
Reference in New Issue
Block a user