From d0ab468f40151e5e728ed9590313cea1820b8ff7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 13 Jun 2022 21:25:42 +0200 Subject: 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. --- plugins/mod_admin_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3