aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-26 11:39:13 +0100
committerKim Alvefur <zash@zash.se>2021-11-26 11:39:13 +0100
commit2ec4d4a83db9aca9fc0fabf4a243db8aa3e20071 (patch)
treece03fce6505c98700fb3ec5f822cfbe0c935d3ed
parent303fd5b4ee153ed5e770156b182c63c2f0b4a60c (diff)
downloadprosody-2ec4d4a83db9aca9fc0fabf4a243db8aa3e20071.tar.gz
prosody-2ec4d4a83db9aca9fc0fabf4a243db8aa3e20071.zip
mod_admin_shell: Reduce width of 'Security' column (thanks Link Mauve)
Tricky to represent "secure, but no details" in short enough space.
-rw-r--r--plugins/mod_admin_shell.lua6
1 files 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 = {