Diff

plugins/mod_admin_adhoc.lua @ 7045:49e2456bf2ce

mod_admin_adhoc: Show only connections to/from the host the command was run on
author Kim Alvefur <zash@zash.se>
date Sun, 03 Jan 2016 17:48:36 +0100
parent 7044:8fcee3339463
child 8192:4354f556c5db
line wrap: on
line diff
--- 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