mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-13 15:16:49 +02:00
Use the local (target) domain for firing the s2s_receive_packet hook.
It was using the external server domain (LFrom) instead of the local domain (LTo). This might have impact on mod_caps in s2s scenarios, needs further attention. SVN Revision: 2583
This commit is contained in:
parent
0d108d5b1e
commit
9d8de17b4d
@ -414,7 +414,7 @@ stream_established({xmlstreamelement, El}, StateData) ->
|
||||
(Name == "presence")) ->
|
||||
ejabberd_hooks:run(
|
||||
s2s_receive_packet,
|
||||
LFrom,
|
||||
LTo,
|
||||
[From, To, NewEl]),
|
||||
ejabberd_router:route(
|
||||
From, To, NewEl);
|
||||
@ -433,7 +433,7 @@ stream_established({xmlstreamelement, El}, StateData) ->
|
||||
(Name == "presence")) ->
|
||||
ejabberd_hooks:run(
|
||||
s2s_receive_packet,
|
||||
LFrom,
|
||||
LTo,
|
||||
[From, To, NewEl]),
|
||||
ejabberd_router:route(
|
||||
From, To, NewEl);
|
||||
|
Loading…
Reference in New Issue
Block a user