aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-02-14 10:00:39 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-02-14 10:00:39 +0500
commitb4b0f2215909c19b5cde685b555db2452165ca4f (patch)
tree4025768192ed500a8a1042dc5e647f0c19b87e5b
parent3ca0b28b545263eae0f4ba2a0425c6c0f5b02538 (diff)
downloadprosody-b4b0f2215909c19b5cde685b555db2452165ca4f.tar.gz
prosody-b4b0f2215909c19b5cde685b555db2452165ca4f.zip
mod_tls: Ban TLS after auth, not before.
-rw-r--r--plugins/mod_tls.lua4
1 files changed, 2 insertions, 2 deletions
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