Comparison

core/s2smanager.lua @ 1895:b7c838a1b0ca

Specify XMPP version on response stream to incoming s2s connection.
author Paul Aurich <paul@darkrain42.org>
date Sat, 03 Oct 2009 23:23:00 -0700
parent 1894:53f34ba6f6d6
child 1909:84027581c995
comparison
equal deleted inserted replaced
1894:53f34ba6f6d6 1895:b7c838a1b0ca
350 350
351 session.streamid = uuid_gen(); 351 session.streamid = uuid_gen();
352 (session.log or log)("debug", "incoming s2s received <stream:stream>"); 352 (session.log or log)("debug", "incoming s2s received <stream:stream>");
353 send("<?xml version='1.0'?>"); 353 send("<?xml version='1.0'?>");
354 send(stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', 354 send(stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback',
355 ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host }):top_tag()); 355 ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host, version="1.0" }):top_tag());
356 if session.to_host and not hosts[session.to_host] then 356 if session.to_host and not hosts[session.to_host] then
357 -- Attempting to connect to a host we don't serve 357 -- Attempting to connect to a host we don't serve
358 session:close({ condition = "host-unknown"; text = "This host does not serve "..session.to_host }); 358 session:close({ condition = "host-unknown"; text = "This host does not serve "..session.to_host });
359 return; 359 return;
360 end 360 end