aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-03-22 12:41:38 +0100
committerKim Alvefur <zash@zash.se>2014-03-22 12:41:38 +0100
commit8e115ce8761fcd561ed3f9e3c74e82c491f7815b (patch)
tree0a148294b25b4046a5802a735f586975c85c747a /plugins/mod_saslauth.lua
parentf666a0d9340519bc839fa97f2f9d5e6e8cad9cdb (diff)
downloadprosody-8e115ce8761fcd561ed3f9e3c74e82c491f7815b.tar.gz
prosody-8e115ce8761fcd561ed3f9e3c74e82c491f7815b.zip
mod_saslauth: Only do c2s SASL on normal VirtualHosts
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 201cc477..c5d3dc91 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -197,7 +197,7 @@ module:hook("stanza/urn:ietf:params:xml:ns:xmpp-sasl:auth", function(event)
return s2s_external_auth(session, stanza)
end
- if session.type ~= "c2s_unauthed" then return; end
+ if session.type ~= "c2s_unauthed" or module:get_host_type() ~= "local" then return; end
if session.sasl_handler and session.sasl_handler.selected then
session.sasl_handler = nil; -- allow starting a new SASL negotiation before completing an old one