Changeset

350:08f89c25e76e

Send version=1.0 again in s2s stream header
author Matthew Wild <mwild1@gmail.com>
date Wed, 19 Nov 2008 22:05:44 +0000
parents 349:256f18e2bfd2
children 351:b6c552bc5716
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Wed Nov 19 22:04:39 2008 +0000
+++ b/core/s2smanager.lua	Wed Nov 19 22:05:44 2008 +0000
@@ -160,7 +160,7 @@
 		session.streamid = uuid_gen();
 		print(session, session.from_host, "incoming s2s stream opened");
 		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 }):top_tag());
+		send(stanza("stream:stream", { version = '1.0', xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host }):top_tag());
 		if session.to_host and not hosts[session.to_host] then
 			-- Attempting to connect to a host we don't serve
 			session:close("host-unknown");