From 0acd505f2ecea86ba8dc71fbfc565edf5c497081 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 20 Jun 2021 18:15:59 +0200 Subject: mod_c2s: Log the same messages for Direct TLS as with starttls ^C^V --- plugins/mod_c2s.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index 38553011..35ec201a 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -295,7 +295,12 @@ function listener.onconnect(conn) -- Check if TLS compression is used local sock = conn:socket(); if sock.info then - session.compressed = sock:info"compression"; + local info = sock:info(); + (session.log or log)("info", "Stream encrypted (%s with %s)", info.protocol, info.cipher); + session.compressed = info.compression; + m_tls_params:with_labels(info.protocol, info.cipher):add(1) + else + (session.log or log)("info", "Stream encrypted"); end end -- cgit v1.2.3