mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-29 14:37:44 +02:00
Call ejabberd_s2s:allow_host/2 with correct virtual host
This commit is contained in:
parent
49214d9cc5
commit
28b1d88772
@ -183,7 +183,7 @@ handle_auth_success(RServer, Mech, _AuthModule,
|
|||||||
?INFO_MSG("(~s) Accepted inbound s2s ~s authentication ~s -> ~s (~s)",
|
?INFO_MSG("(~s) Accepted inbound s2s ~s authentication ~s -> ~s (~s)",
|
||||||
[xmpp_socket:pp(Socket), Mech, RServer, LServer,
|
[xmpp_socket:pp(Socket), Mech, RServer, LServer,
|
||||||
ejabberd_config:may_hide_data(misc:ip_to_list(IP))]),
|
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 ->
|
true ->
|
||||||
AuthDomains1 = sets:add_element(RServer, AuthDomains),
|
AuthDomains1 = sets:add_element(RServer, AuthDomains),
|
||||||
State0 = change_shaper(State, RServer),
|
State0 = change_shaper(State, RServer),
|
||||||
|
Loading…
Reference in New Issue
Block a user