25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01: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:
Pablo Polvorin 2009-09-04 21:31:03 +00:00
parent 0d108d5b1e
commit 9d8de17b4d

View File

@ -414,7 +414,7 @@ stream_established({xmlstreamelement, El}, StateData) ->
(Name == "presence")) -> (Name == "presence")) ->
ejabberd_hooks:run( ejabberd_hooks:run(
s2s_receive_packet, s2s_receive_packet,
LFrom, LTo,
[From, To, NewEl]), [From, To, NewEl]),
ejabberd_router:route( ejabberd_router:route(
From, To, NewEl); From, To, NewEl);
@ -433,7 +433,7 @@ stream_established({xmlstreamelement, El}, StateData) ->
(Name == "presence")) -> (Name == "presence")) ->
ejabberd_hooks:run( ejabberd_hooks:run(
s2s_receive_packet, s2s_receive_packet,
LFrom, LTo,
[From, To, NewEl]), [From, To, NewEl]),
ejabberd_router:route( ejabberd_router:route(
From, To, NewEl); From, To, NewEl);