mod_admin_adhoc: Show only connections to/from the host the command was run on
authorKim Alvefur <zash@zash.se>
Sun, 03 Jan 2016 17:48:36 +0100
changeset 7048 49e2456bf2ce
parent 7047 8fcee3339463
child 7049 6b4232125f32
child 7050 9ca2b720ad43
mod_admin_adhoc: Show only connections to/from the host the command was run on
plugins/mod_admin_adhoc.lua
--- a/plugins/mod_admin_adhoc.lua	Sun Jan 03 17:22:58 2016 +0100
+++ b/plugins/mod_admin_adhoc.lua	Sun Jan 03 17:48:36 2016 +0100
@@ -422,7 +422,7 @@
 		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