Mmm, s2s fixed :)
authorMatthew Wild <mwild1@gmail.com>
Fri, 14 Nov 2008 02:06:17 +0000 (02:06 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 14 Nov 2008 02:06:17 +0000 (02:06 +0000)
core/s2smanager.lua

index 276873cd0f9e4aa0f50b9e514ac51c1885af6f39..fe43b18196c6bae49c8a22c4a0b5a28a057e54b6 100644 (file)
@@ -135,7 +135,7 @@ function streamopened(session, attr)
                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