From d0bf02ff6639f9cd0cea23848e74361bad19640d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 3 Jan 2016 17:48:36 +0100 Subject: mod_admin_adhoc: Show only connections to/from the host the command was run on --- plugins/mod_admin_adhoc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index 8349a383..392e715e 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -422,7 +422,7 @@ local function list_s2s_this_handler(self, data, state) local sess_lines = { r = remotehost, session_flags(session, { "", direction, remotehost or "?" })}; - if remotehost:match(module_host) or localhost:match(module_host) then + if localhost == module_host then s2s_list[#s2s_list+1] = sess_lines; end end -- cgit v1.2.3