Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
13040:0cbe400ebab4 | 13041:61b00bd20074 |
---|---|
867 }; | 867 }; |
868 secure = { | 868 secure = { |
869 title = "Security"; | 869 title = "Security"; |
870 description = "TLS version or security status"; | 870 description = "TLS version or security status"; |
871 key = "conn"; | 871 key = "conn"; |
872 width = math.max(#"secure", "TLSvX.Y"); | 872 width = math.max(#"secure", #"TLSvX.Y"); |
873 mapper = function(conn, session) | 873 mapper = function(conn, session) |
874 if not session.secure then return "insecure"; end | 874 if not session.secure then return "insecure"; end |
875 if not conn or not conn:ssl() then return "secure" end | 875 if not conn or not conn:ssl() then return "secure" end |
876 local tls_info = conn.ssl_info and conn:ssl_info(); | 876 local tls_info = conn.ssl_info and conn:ssl_info(); |
877 return tls_info and tls_info.protocol or "secure"; | 877 return tls_info and tls_info.protocol or "secure"; |