aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_shell.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-04-07 13:04:15 +0200
committerKim Alvefur <zash@zash.se>2023-04-07 13:04:15 +0200
commit65dffa88a8823412edea52129345a2d773067480 (patch)
treec5d40563db21ee6045830c59e2d267307fd70c8a /plugins/mod_admin_shell.lua
parent08c055709347b78e2fad5621dac247aa4a794fde (diff)
downloadprosody-65dffa88a8823412edea52129345a2d773067480.tar.gz
prosody-65dffa88a8823412edea52129345a2d773067480.zip
mod_admin_shell: Fix attempt to compare number with string
Missed the # in 93c1590b5951
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r--plugins/mod_admin_shell.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 43903aa7..291aa09b 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -869,7 +869,7 @@ available_columns = {
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