Changeset

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
parents 2786:534e171036ef
children 2788:fb47ac5ed04c
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");