# HG changeset patch # User Kim Alvefur # Date 1637923153 -3600 # Node ID 142b9c4010fed212500cc41e9e503fc002b18678 # Parent 8b5e646dfaa6c5d763ad62e59bf76611d504f8aa mod_admin_shell: Reduce width of 'Security' column (thanks Link Mauve) Tricky to represent "secure, but no details" in short enough space. diff -r 8b5e646dfaa6 -r 142b9c4010fe plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Thu Nov 25 18:13:43 2021 +0100 +++ b/plugins/mod_admin_shell.lua Fri Nov 26 11:39:13 2021 +0100 @@ -726,14 +726,14 @@ 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 = {