From 7f68cacb7989b7219c9b387406c003bbfc5445f1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 10 Nov 2021 20:25:37 +0100 Subject: mod_admin_shell: Indicate bi-directional s2s connections --- plugins/mod_admin_shell.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 6449f3a0..f4b46bfb 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -661,7 +661,8 @@ local available_columns = { title = "Dir"; width = 3; key = "direction"; - mapper = function (dir) + mapper = function(dir, session) + if session.incoming and session.outgoing then return "<->"; end if dir == "outgoing" then return "-->"; end if dir == "incoming" then return "<--"; end return "" -- cgit v1.2.3