# HG changeset patch # User Kim Alvefur # Date 1395488498 -3600 # Node ID 0d6f23049e9531768f4961a2584fc2087e70fef3 # Parent 9b91242cc13791b2b93a54684e8ac69a468c346e mod_saslauth: Only do c2s SASL on normal VirtualHosts diff -r 9b91242cc137 -r 0d6f23049e95 plugins/mod_saslauth.lua --- 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