Diff

plugins/mod_admin_shell.lua @ 11945:142b9c4010fe

mod_admin_shell: Reduce width of 'Security' column (thanks Link Mauve) Tricky to represent "secure, but no details" in short enough space.
author Kim Alvefur <zash@zash.se>
date Fri, 26 Nov 2021 11:39:13 +0100
parent 11943:cf47834d3698
child 11946:c0a01e5f5656
line wrap: on
line diff
--- 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 = {