Software /
code /
prosody
Changeset
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 |
parents | 6030:9b91242cc137 |
children | 6034:ee14da71d3fc |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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