Diff

plugins/mod_admin_shell.lua @ 13041:61b00bd20074

mod_admin_shell: Fix attempt to compare number with string Missed the # in 93c1590b5951
author Kim Alvefur <zash@zash.se>
date Fri, 07 Apr 2023 13:04:15 +0200
parent 13037:635ed9a362ee
child 13042:0f05804e974d
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Fri Apr 07 13:02:20 2023 +0200
+++ b/plugins/mod_admin_shell.lua	Fri Apr 07 13:04:15 2023 +0200
@@ -869,7 +869,7 @@
 		title = "Security";
 		description = "TLS version or security status";
 		key = "conn";
-		width = math.max(#"secure", "TLSvX.Y");
+		width = math.max(#"secure", #"TLSvX.Y");
 		mapper = function(conn, session)
 			if not session.secure then return "insecure"; end
 			if not conn or not conn:ssl() then return "secure" end