Changeset

12788:3835c397b129 0.12

mod_admin_shell: Ensure available connection for column 'secure' Similar to #1777
author Kim Alvefur <zash@zash.se>
date Sun, 23 Oct 2022 16:22:12 +0200
parents 12787:3735ad8d6f8e
children 12789:517b5702c5a1 12790:24b55f0e2db9
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	Sun Oct 23 16:19:39 2022 +0200
+++ b/plugins/mod_admin_shell.lua	Sun Oct 23 16:22:12 2022 +0200
@@ -816,7 +816,7 @@
 		width = 30;
 		key = "conn";
 		mapper = function(conn)
-			local sock = conn:socket();
+			local sock = conn and conn:socket();
 			local info = sock and sock.info and sock:info();
 			if info then return info.cipher end
 		end;