Mmm, s2s fixed :)

Fri, 14 Nov 2008 02:06:17 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 14 Nov 2008 02:06:17 +0000
changeset 252
a698993bd49b
parent 251
5b6dec537914
child 253
f2869ded1d37

Mmm, s2s fixed :)

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Thu Nov 13 16:58:29 2008 +0000
+++ b/core/s2smanager.lua	Fri Nov 14 02:06:17 2008 +0000
@@ -135,7 +135,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 }));
+		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());
 	elseif session.direction == "outgoing" then
 		-- If we are just using the connection for verifying dialback keys, we won't try and auth it
 		if not attr.id then error("stream response did not give us a streamid!!!"); end

mercurial