diff options
author | Kim Alvefur <zash@zash.se> | 2022-06-13 21:25:42 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-06-13 21:25:42 +0200 |
commit | d0ab468f40151e5e728ed9590313cea1820b8ff7 (patch) | |
tree | e4c68dad3a1a236a6307b9246169468d1b887610 | |
parent | 32eb31a9a13a75b0c205ff16866c9cc92cd769d1 (diff) | |
download | prosody-d0ab468f40151e5e728ed9590313cea1820b8ff7.tar.gz prosody-d0ab468f40151e5e728ed9590313cea1820b8ff7.zip |
mod_admin_shell: Show session id ping reply came
To point out which one when more than one connection was established, or
if it's an existing connection, allows correlation with s2s:show() or
with logs.
-rw-r--r-- | plugins/mod_admin_shell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index c498072b..4033d868 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1533,7 +1533,7 @@ function def_env.xmpp:ping(localhost, remotehost, timeout) module:unhook("s2sin-established", onestablished); module:unhook("s2s-destroyed", ondestroyed); end):next(function(pong) - return ("pong from %s in %gs"):format(pong.stanza.attr.from, time.now() - time_start); + return ("pong from %s on %s in %gs"):format(pong.stanza.attr.from, pong.origin.id, time.now() - time_start); end); end |