24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-06 21:37:17 +02:00

Send correct from/to attributes in s2s dialback response (EJAB-1363).

We were sending swapped from/to attributes when replying to db:verify requests.
Some servers don't mind about this, but others like prosody checks this and
rejects the verification, the s2s connection in that case couldn't be established.
This commit is contained in:
Pablo Polvorin 2011-01-10 17:46:07 -03:00
parent 2d3efdf983
commit 54557cb867

View File

@ -462,7 +462,7 @@ stream_established({xmlstreamelement, El}, StateData) ->
end;
stream_established({valid, From, To}, StateData) ->
send_element(StateData, exmpp_dialback:validate(From, To)),
send_element(StateData, exmpp_dialback:validate(To, From)),
LFrom = exmpp_stringprep:nameprep(From),
LTo = exmpp_stringprep:nameprep(To),
NSD = StateData#state{