summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Polvorin <pablo.polvorin@process-one.net>2009-09-04 21:31:03 +0000
committerPablo Polvorin <pablo.polvorin@process-one.net>2009-09-04 21:31:03 +0000
commit9d8de17b4d079553f8108725bcb8675a203794c1 (patch)
tree9febf30bdb1afe0db8d72e8bdb8ff57ef08e6b8a /src
parentUpdate Swedish translation (thanks to Gustaf Alströmer) (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_s2s_in.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_s2s_in.erl b/src/ejabberd_s2s_in.erl
index ae6508cd..6a38ae27 100644
--- a/src/ejabberd_s2s_in.erl
+++ b/src/ejabberd_s2s_in.erl
@@ -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);