mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_admin_shell: Ensure connection exists to get port from (fixes #1777)
This commit is contained in:
parent
bab0635179
commit
c51152432a
1 changed files with 5 additions and 1 deletions
|
@ -745,7 +745,11 @@ available_columns = {
|
|||
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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue