mod_admin_adhoc: Show only connections to/from the host the command was run on
authorKim Alvefur <zash@zash.se>
Sun, 3 Jan 2016 16:48:36 +0000 (17:48 +0100)
committerKim Alvefur <zash@zash.se>
Sun, 3 Jan 2016 16:48:36 +0000 (17:48 +0100)
plugins/mod_admin_adhoc.lua

index 8349a383e1a0001a801d06c372f8fa5c1a49d0d1..392e715e3b8954fd80a22e119811ae9ec56a29a7 100644 (file)
@@ -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