Diff

core/s2smanager.lua @ 2787:1067a454a068

s2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy.
author Paul Aurich <paul@darkrain42.org>
date Sun, 03 Jan 2010 11:26:36 -0800
parent 2783:57611584e27d
child 2799:0dc7b5ceaf8f
line wrap: on
line diff
--- a/core/s2smanager.lua	Sun Jan 03 03:36:40 2010 +0000
+++ b/core/s2smanager.lua	Sun Jan 03 11:26:36 2010 -0800
@@ -379,7 +379,7 @@
 		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");