Diff

core/s2smanager.lua @ 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
parent 349:256f18e2bfd2
child 351:b6c552bc5716
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");