# HG changeset patch # User Kim Alvefur # Date 1636979466 -3600 # Node ID bbfa707a47565682364595b8aa938c9f1e743d45 # Parent 313d01cc4258775d74d8fffc796b9ba5a4ec7e25 mod_admin_shell: Handle absence of connection in security column (thanks arcseconds) I surmise this can happen in a disconnected/smacks hibernation state. diff -r 313d01cc4258 -r bbfa707a4756 plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Sat Nov 13 22:12:39 2021 +0100 +++ b/plugins/mod_admin_shell.lua Mon Nov 15 13:31:06 2021 +0100 @@ -710,7 +710,7 @@ 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();