Changeset

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
parents 7044:8fcee3339463
children 7046:6b4232125f32 7047:9ca2b720ad43
files plugins/mod_admin_adhoc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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