Software /
code /
prosody
Changeset
12787:3735ad8d6f8e 0.12
mod_admin_shell: Ensure connection exists to get port from (fixes #1777)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 23 Oct 2022 16:19:39 +0200 |
parents | 12779:f0474d40364c |
children | 12788:3835c397b129 |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Thu Oct 20 16:31:18 2022 +0200 +++ b/plugins/mod_admin_shell.lua Sun Oct 23 16:19:39 2022 +0200 @@ -745,7 +745,11 @@ width = 5; align = "right"; key = "conn"; - mapper = function(conn) return conn:serverport(); end; + mapper = function(conn) + if conn then + return conn:serverport(); + end + end; }; dir = { title = "Dir";