From: Matthew Wild Date: Wed, 19 Nov 2008 05:12:21 +0000 (+0000) Subject: Don't attempt to auth connection unless stanzas are being sent across it X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=43eb3c7880534327649626c4c13e8fd9141597dc;p=prosody.git Don't attempt to auth connection unless stanzas are being sent across it --- diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 1a600db2..7d07ad7a 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -35,7 +35,7 @@ function send_to_host(from_host, to_host, data) 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");