diff options
author | Kim Alvefur <zash@zash.se> | 2014-03-25 19:16:38 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-03-25 19:16:38 +0100 |
commit | f7d4b04bf17c8b634eae00e814a995a88c5ba6cb (patch) | |
tree | 1dd9879238a7c2f688f02d2b61ed2877da2e9989 /plugins | |
parent | 03559cb06e7abb0245c2a73c75ad9a49297b48f6 (diff) | |
parent | aff3965927ff8763b477b97a4be4f477186738a0 (diff) | |
download | prosody-f7d4b04bf17c8b634eae00e814a995a88c5ba6cb.tar.gz prosody-f7d4b04bf17c8b634eae00e814a995a88c5ba6cb.zip |
Merge 0.9->0.10
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_saslauth.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index 94c060b3..df60aefa 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 |