Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
12787:3735ad8d6f8e | 12788:3835c397b129 |
---|---|
814 title = "Encryption"; | 814 title = "Encryption"; |
815 description = "Encryption algorithm used (TLS cipher suite)"; | 815 description = "Encryption algorithm used (TLS cipher suite)"; |
816 width = 30; | 816 width = 30; |
817 key = "conn"; | 817 key = "conn"; |
818 mapper = function(conn) | 818 mapper = function(conn) |
819 local sock = conn:socket(); | 819 local sock = conn and conn:socket(); |
820 local info = sock and sock.info and sock:info(); | 820 local info = sock and sock.info and sock:info(); |
821 if info then return info.cipher end | 821 if info then return info.cipher end |
822 end; | 822 end; |
823 }; | 823 }; |
824 cert = { | 824 cert = { |