From: Waqas Hussain Date: Sun, 14 Feb 2010 05:00:39 +0000 (+0500) Subject: mod_tls: Ban TLS after auth, not before. X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=e24cc2cc342ae154d4b22557aaa2edc0af62343b;p=prosody.git mod_tls: Ban TLS after auth, not before. --- diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index 67d8d5d7..1a00c36e 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -26,9 +26,9 @@ local host = hosts[module.host]; local function can_do_tls(session) if session.type == "c2s_unauthed" then - return session.username and session.conn.starttls and host.ssl_ctx_in; + return session.conn.starttls and host.ssl_ctx_in; elseif session.type == "s2sin_unauthed" then - return session.to_host and session.conn.starttls and host.ssl_ctx_in; + return session.conn.starttls and host.ssl_ctx_in; end return false; end