diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-15 13:31:06 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-15 13:31:06 +0100 |
commit | 38c7c944cad7b5c7d5a0e8419745a077b56289d6 (patch) | |
tree | 8e2da9df7340588081e5e0104a09a6eb840fdfe6 /plugins | |
parent | e08d82a0773a3ef9a32170e9bda191846f0de968 (diff) | |
download | prosody-38c7c944cad7b5c7d5a0e8419745a077b56289d6.tar.gz prosody-38c7c944cad7b5c7d5a0e8419745a077b56289d6.zip |
mod_admin_shell: Handle absence of connection in security column (thanks arcseconds)
I surmise this can happen in a disconnected/smacks hibernation state.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_shell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 94b428a3..d0affcaf 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -710,7 +710,7 @@ local available_columns = { width = 11; mapper = function(conn, session) if not session.secure then return "insecure"; end - if not conn:ssl() then return "secure" 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 local tls_info = sock.info and sock:info(); |