Specify XMPP version on response stream to incoming s2s connection.

Sat, 03 Oct 2009 23:23:00 -0700

author
Paul Aurich <paul@darkrain42.org>
date
Sat, 03 Oct 2009 23:23:00 -0700
changeset 1895
b7c838a1b0ca
parent 1894
53f34ba6f6d6
child 1896
e7ac9be5c90c

Specify XMPP version on response stream to incoming s2s connection.

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Sat Oct 03 19:20:20 2009 -0700
+++ b/core/s2smanager.lua	Sat Oct 03 23:23:00 2009 -0700
@@ -352,7 +352,7 @@
 		(session.log or log)("debug", "incoming s2s received <stream:stream>");
 		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());
+				["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, version="1.0" }):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({ condition = "host-unknown"; text = "This host does not serve "..session.to_host });

mercurial