aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-10-06 16:23:43 +0200
committerKim Alvefur <zash@zash.se>2019-10-06 16:23:43 +0200
commit56e9e471e7501bffa576aa5eef51d9bf3c0561b5 (patch)
tree58dac86df5c8fe6545095022ed7dbf8c7a7bea17
parent2da7971cb5dae639818e67ba68d37946d948b787 (diff)
downloadprosody-56e9e471e7501bffa576aa5eef51d9bf3c0561b5.tar.gz
prosody-56e9e471e7501bffa576aa5eef51d9bf3c0561b5.zip
net.server_epoll: Log TLS version and cipher for all completed handshakes
The similar logging in mod_c2s and mod_s2s does not cover all connections, like HTTPS or other Direct TLS ports.
-rw-r--r--net/server_epoll.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 991383ec..6c65bcdd 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -548,7 +548,12 @@ function interface:tlshandskake()
end
local ok, err = self.conn:dohandshake();
if ok then
- self:debug("TLS handshake complete");
+ if self.conn.info then
+ local info = self.conn:info();
+ self:debug("TLS handshake complete (%s with %s)", info.protocol, info.cipher);
+ else
+ self:debug("TLS handshake complete");
+ end
self.onwritable = nil;
self.onreadable = nil;
self:on("status", "ssl-handshake-complete");