From 1ffb6f0b3dd61ea852ceb715d939077eda919d4e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 7 Dec 2021 13:21:20 +0100 Subject: 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. --- plugins/mod_admin_shell.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.2.3