Diff

plugins/mod_admin_shell.lua @ 11905:bbfa707a4756

mod_admin_shell: Handle absence of connection in security column (thanks arcseconds) I surmise this can happen in a disconnected/smacks hibernation state.
author Kim Alvefur <zash@zash.se>
date Mon, 15 Nov 2021 13:31:06 +0100
parent 11892:e712133b4de1
child 11917:d27b74b25105
line wrap: on
line diff
--- 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();