mod_admin_shell: Add port as a c2s/s2s:show column definition
authorKim Alvefur <zash@zash.se>
Tue, 07 Dec 2021 13:21:20 +0100
changeset 12027 5a3781a12285
parent 12026 eedd3eff0768
child 12028 9184bdda22be
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
--- a/plugins/mod_admin_shell.lua	Tue Dec 07 13:04:52 2021 +0100
+++ b/plugins/mod_admin_shell.lua	Tue Dec 07 13:21:20 2021 +0100
@@ -690,6 +690,13 @@
 			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;