aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2010-01-03 11:26:36 -0800
committerPaul Aurich <paul@darkrain42.org>2010-01-03 11:26:36 -0800
commitb67695c401e87869c9e57e90759430497f8a1abc (patch)
treec69c842c2a098c690be9e1257f6997f13ba10548 /core
parent4b75f2857c55522da732ee0c62303c592e591b72 (diff)
downloadprosody-b67695c401e87869c9e57e90759430497f8a1abc.tar.gz
prosody-b67695c401e87869c9e57e90759430497f8a1abc.zip
s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy.
Diffstat (limited to 'core')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 37957acf..30ac736b 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -369,7 +369,7 @@ function streamopened(session, attr)
end
send("<?xml version='1.0'?>");
send(stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback',
- ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, version=(session.version > 0 and "1.0" or nil) }):top_tag());
+ ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, to=session.from_host, version=(session.version > 0 and "1.0" or nil) }):top_tag());
if session.version >= 1.0 then
local features = st.stanza("stream:features");