From: Paweł Chmielowski Date: Thu, 12 Apr 2018 15:42:59 +0000 (+0200) Subject: Pass access option from websocket to c2s X-Git-Tag: 18.04~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3b4b4ce4f269d98960d51a6bac9f4d6ee2d6086;p=ejabberd Pass access option from websocket to c2s This fixes issue #2223 --- diff --git a/src/ejabberd_http_ws.erl b/src/ejabberd_http_ws.erl index 1edaeb073..0c15ab6c0 100644 --- a/src/ejabberd_http_ws.erl +++ b/src/ejabberd_http_ws.erl @@ -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,