Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 6033:0d6f23049e95
mod_saslauth: Only do c2s SASL on normal VirtualHosts
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Mar 2014 12:41:38 +0100 |
parent | 5535:0df0afc041d7 |
child | 6038:b3ceb7627e27 |
child | 7939:6940d6db970b |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Sun Mar 09 22:16:44 2014 +0100 +++ b/plugins/mod_saslauth.lua Sat Mar 22 12:41: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