aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_shell.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-07 13:21:20 +0100
committerKim Alvefur <zash@zash.se>2021-12-07 13:21:20 +0100
commit1ffb6f0b3dd61ea852ceb715d939077eda919d4e (patch)
tree977a5c55e19360f7f4534647eed8abffa0bc0143 /plugins/mod_admin_shell.lua
parentf7527cc4f1751d086e33294a8d25a2946556131b (diff)
downloadprosody-1ffb6f0b3dd61ea852ceb715d939077eda919d4e.tar.gz
prosody-1ffb6f0b3dd61ea852ceb715d939077eda919d4e.zip
mod_admin_shell: Add port as a c2s/s2s:show column definition
Allows inferring whether Direct TLS was used, or perhaps which SRV record was chosen. Not shown by default.
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r--plugins/mod_admin_shell.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 526430db..4ee39289 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -690,6 +690,13 @@ local available_columns = {
return select(2, get_s2s_hosts(session));
end;
};
+ port = {
+ title = "Port";
+ width = 5;
+ align = "right";
+ key = "conn";
+ mapper = function(conn) return conn:serverport(); end;
+ };
dir = {
title = "Dir";
width = 3;