Pass access option from websocket to c2s

This fixes issue #2223
This commit is contained in:
Paweł Chmielowski 2018-04-12 17:42:59 +02:00
parent 95244c3b6f
commit c3b4b4ce4f
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ init([{#ws{ip = IP, http_opts = HOpts}, _} = WS]) ->
({resume_timeout, _}) -> true;
({max_resume_timeout, _}) -> true;
({resend_on_timeout, _}) -> true;
({access, _}) -> true;
(_) -> false
end, HOpts),
Opts = ejabberd_c2s_config:get_c2s_limits() ++ SOpts,