From: Evgeny Khramtsov Date: Mon, 24 Jun 2019 18:18:57 +0000 (+0300) Subject: Call ejabberd_s2s:allow_host/2 with correct virtual host X-Git-Tag: 19.08~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28b1d88772523b433bc2cc1ea6c3c0e1d3477f06;p=ejabberd Call ejabberd_s2s:allow_host/2 with correct virtual host --- diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl index 96cb93c25..ec65b7612 100644 --- a/src/ejabberd_s2s_in.erl +++ b/src/ejabberd_s2s_in.erl @@ -183,7 +183,7 @@ handle_auth_success(RServer, Mech, _AuthModule, ?INFO_MSG("(~s) Accepted inbound s2s ~s authentication ~s -> ~s (~s)", [xmpp_socket:pp(Socket), Mech, RServer, LServer, ejabberd_config:may_hide_data(misc:ip_to_list(IP))]), - State1 = case ejabberd_s2s:allow_host(LServer, RServer) of + State1 = case ejabberd_s2s:allow_host(ServerHost, RServer) of true -> AuthDomains1 = sets:add_element(RServer, AuthDomains), State0 = change_shaper(State, RServer),