Don't attempt to auth connection unless stanzas are being sent across it

Wed, 19 Nov 2008 05:12:21 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 19 Nov 2008 05:12:21 +0000
changeset 344
ed5824e9dd94
parent 343
cae2178b5623
child 345
6a7acfc1c933

Don't attempt to auth connection unless stanzas are being sent across it

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Wed Nov 19 05:11:37 2008 +0000
+++ b/core/s2smanager.lua	Wed Nov 19 05:12:21 2008 +0000
@@ -35,7 +35,7 @@
 	local host = hosts[from_host].s2sout[to_host];
 	if host then
 		-- We have a connection to this host already
-		if host.type == "s2sout_unauthed" then
+		if host.type == "s2sout_unauthed" and ((not data.xmlns) or data.xmlns == "jabber:client" or data.xmlns == "jabber:server") then
 			(host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host..", authing it now...");
 			if not host.notopen and not host.dialback_key then
 				host.log("debug", "dialback had not been initiated");

mercurial