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:
Pablo Polvorin 2009-09-04 21:31:03 +00:00
parent 0d108d5b1e
commit 9d8de17b4d
1 changed files with 2 additions and 2 deletions

View File

@ -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);