diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-14 14:28:20 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-14 14:28:20 +0500 |
commit | cdea8358b2f1dd818633967f16c0ac29af3fd95c (patch) | |
tree | ea895fc86b21f6dfb7f7a4184bf56c10716d77dc /core/stanza_router.lua | |
parent | 100822df21bd56a8a15dd4a5f07d8810cc30e3cc (diff) | |
download | prosody-cdea8358b2f1dd818633967f16c0ac29af3fd95c.tar.gz prosody-cdea8358b2f1dd818633967f16c0ac29af3fd95c.zip |
stanza_router: Use stanza.attr.from's host instead of origin.host when routing stanzas to remote hosts (fixes problem with sending from node@host components)
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r-- | core/stanza_router.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index f27cc100..22064f3f 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -310,8 +310,8 @@ function core_route_stanza(origin, stanza) stanza.attr.xmlns = xmlns; -- reset elseif origin.type == "component" or origin.type == "local" then -- Route via s2s for components and modules - log("debug", "Routing outgoing stanza for %s to %s", origin.host, host); - send_s2s(origin.host, host, stanza); + log("debug", "Routing outgoing stanza for %s to %s", from_host, host); + send_s2s(from_host, host, stanza); else log("warn", "received stanza from unhandled connection type: %s", origin.type); end |