diff options
author | Kim Alvefur <zash@zash.se> | 2016-01-03 17:48:36 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-01-03 17:48:36 +0100 |
commit | dc21fd08f46d714de6f8b8318b3c3ee212e97e2f (patch) | |
tree | 9dfa56c25db8165bafe504a63d63283506ea2a2f | |
parent | b6cb16100c85eff0763b3d2f9fc9bf4b07dc48f7 (diff) | |
download | prosody-dc21fd08f46d714de6f8b8318b3c3ee212e97e2f.tar.gz prosody-dc21fd08f46d714de6f8b8318b3c3ee212e97e2f.zip |
mod_admin_adhoc: Show only connections to/from the host the command was run on
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |