Changeset

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
parents 11904:313d01cc4258
children 11906:ba3344926e18
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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();