aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-25 01:16:31 +0100
committerKim Alvefur <zash@zash.se>2017-02-25 01:16:31 +0100
commit217ecf012aff5f1b451a06ac47f8f7631949848b (patch)
tree996b752437a291cdb4d00006c7564e374e4d12de /plugins/mod_tls.lua
parent8dc1b0ae47d0c777a59a914cba8dc7c7785f2ab4 (diff)
downloadprosody-217ecf012aff5f1b451a06ac47f8f7631949848b.tar.gz
prosody-217ecf012aff5f1b451a06ac47f8f7631949848b.zip
mod_tls: Suppress debug message if already using encryption
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index 3903a760..fbeb344b 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -63,7 +63,9 @@ end
local function can_do_tls(session)
if not session.conn.starttls then
- session.log("debug", "Underlying connection does not support STARTTLS");
+ if not session.secure then
+ session.log("debug", "Underlying connection does not support STARTTLS");
+ end
return false;
elseif session.ssl_ctx ~= nil then
return session.ssl_ctx;