mod_admin_shell: Ensure available connection for column 'secure'

Similar to #1777
This commit is contained in:
Kim Alvefur 2022-10-23 16:22:12 +02:00
parent c51152432a
commit 20532df525

View file

@ -816,7 +816,7 @@ available_columns = {
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;