mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Use LFrom and LTo consistently in ejabberd_s2s_in:stream_established/2 (EJAB-1342)
This commit is contained in:
parent
ec0e0ef8a6
commit
aaa69a8c36
@ -337,11 +337,11 @@ stream_established({xmlstreamelement, El}, StateData) ->
|
|||||||
LFrom = exmpp_stringprep:nameprep(From),
|
LFrom = exmpp_stringprep:nameprep(From),
|
||||||
%% Checks if the from domain is allowed and if the to
|
%% Checks if the from domain is allowed and if the to
|
||||||
%% domain is handled by this server:
|
%% domain is handled by this server:
|
||||||
case {ejabberd_s2s:allow_host(To, From),
|
case {ejabberd_s2s:allow_host(LTo, LFrom),
|
||||||
lists:member(LTo, ejabberd_router:dirty_get_all_domains())} of
|
lists:member(LTo, ejabberd_router:dirty_get_all_domains())} of
|
||||||
{true, true} ->
|
{true, true} ->
|
||||||
ejabberd_s2s_out:terminate_if_waiting_delay(To, From),
|
ejabberd_s2s_out:terminate_if_waiting_delay(LTo, LFrom),
|
||||||
ejabberd_s2s_out:start(To, From,
|
ejabberd_s2s_out:start(LTo, LFrom,
|
||||||
{verify, self(),
|
{verify, self(),
|
||||||
Key, StateData#state.streamid}),
|
Key, StateData#state.streamid}),
|
||||||
Conns = ?DICT:store({LFrom, LTo}, wait_for_verification,
|
Conns = ?DICT:store({LFrom, LTo}, wait_for_verification,
|
||||||
|
Loading…
Reference in New Issue
Block a user