Software /
code /
prosody
Changeset
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 |
parents | 11944:8b5e646dfaa6 |
children | 11946:c0a01e5f5656 |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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 = {