Software /
code /
prosody
Diff
plugins/mod_admin_shell.lua @ 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 |
parent | 12787:3735ad8d6f8e |
child | 12789:517b5702c5a1 |
child | 12887:68df46926c26 |
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;