diff options
author | Kim Alvefur <zash@zash.se> | 2019-10-06 16:23:43 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-10-06 16:23:43 +0200 |
commit | 621a28541bb2390e67e7336b13fa3f749d2a5ec9 (patch) | |
tree | 58dac86df5c8fe6545095022ed7dbf8c7a7bea17 /net/server_epoll.lua | |
parent | af596f7e291caa5db92c484ddfa256ec2efa75c1 (diff) | |
download | prosody-621a28541bb2390e67e7336b13fa3f749d2a5ec9.tar.gz prosody-621a28541bb2390e67e7336b13fa3f749d2a5ec9.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.
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r-- | net/server_epoll.lua | 7 |
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"); |