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:
parent
2d3efdf983
commit
54557cb867
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue
Block a user