aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-19 05:12:21 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-19 05:12:21 +0000
commit9ab64fc855ca26144480ba5a9d24c3653cd2fc4d (patch)
treeff5fad674dcb656dfa7b910f6f288905536dd2c8 /core/s2smanager.lua
parentf1966ba5b72e6b3d49fee3405958a2b2f86239a4 (diff)
downloadprosody-9ab64fc855ca26144480ba5a9d24c3653cd2fc4d.tar.gz
prosody-9ab64fc855ca26144480ba5a9d24c3653cd2fc4d.zip
Don't attempt to auth connection unless stanzas are being sent across it
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
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");