mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +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;
|
width = 5;
|
||||||
align = "right";
|
align = "right";
|
||||||
key = "conn";
|
key = "conn";
|
||||||
mapper = function(conn) return conn:serverport(); end;
|
mapper = function(conn)
|
||||||
|
if conn then
|
||||||
|
return conn:serverport();
|
||||||
|
end
|
||||||
|
end;
|
||||||
};
|
};
|
||||||
dir = {
|
dir = {
|
||||||
title = "Dir";
|
title = "Dir";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue