mod_admin_shell: Ensure available connection for column 'secure' 0.12
authorKim Alvefur <zash@zash.se>
Sun, 23 Oct 2022 16:22:12 +0200
branch0.12
changeset 12792 3835c397b129
parent 12791 3735ad8d6f8e
child 12793 517b5702c5a1
child 12794 24b55f0e2db9
mod_admin_shell: Ensure available connection for column 'secure' Similar to #1777
plugins/mod_admin_shell.lua
--- 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;