]> granicus.if.org Git - ejabberd/commitdiff
Pass access option from websocket to c2s
authorPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 12 Apr 2018 15:42:59 +0000 (17:42 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 12 Apr 2018 15:42:59 +0000 (17:42 +0200)
This fixes issue #2223

src/ejabberd_http_ws.erl

index 1edaeb0734d4f95882327f15fc0cd917aaa66459..0c15ab6c0ae9411c9e24124747c2242749bfe48d 100644 (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,