Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 6038:b3ceb7627e27
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 25 Mar 2014 19:16:38 +0100 |
parent | 6014:d61026bee038 |
parent | 6033:0d6f23049e95 |
child | 6302:76699a0ae4c4 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Sat Mar 22 14:53:17 2014 +0100 +++ b/plugins/mod_saslauth.lua Tue Mar 25 19:16:38 2014 +0100 @@ -197,7 +197,7 @@ 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