From 2ec4d4a83db9aca9fc0fabf4a243db8aa3e20071 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 26 Nov 2021 11:39:13 +0100 Subject: mod_admin_shell: Reduce width of 'Security' column (thanks Link Mauve) Tricky to represent "secure, but no details" in short enough space. --- plugins/mod_admin_shell.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 555f6715..75e36e0e 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -726,14 +726,14 @@ local available_columns = { secure = { title = "Security"; key = "conn"; - width = 11; + width = 8; mapper = function(conn, session) if not session.secure then return "insecure"; end if not conn or not conn:ssl() then return "secure" end local sock = conn and conn:socket(); - if not sock then return "unknown TLS"; end + if not sock then return "secure"; end local tls_info = sock.info and sock:info(); - return tls_info and tls_info.protocol or "unknown TLS"; + return tls_info and tls_info.protocol or "secure"; end; }; encryption = { -- cgit v1.2.3