Changeset

2636:d2805ad5b736

mod_tls: Ban TLS after auth, not before.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 14 Feb 2010 10:00:39 +0500
parents 2635:e79057cf2538
children 2637:82cfc1ec4a7c
files plugins/mod_tls.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_tls.lua	Sun Feb 14 09:59:57 2010 +0500
+++ b/plugins/mod_tls.lua	Sun Feb 14 10:00:39 2010 +0500
@@ -26,9 +26,9 @@
 
 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