Changeset

12551:3b7e97e0a8ef

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.
author Kim Alvefur <zash@zash.se>
date Mon, 13 Jun 2022 21:25:42 +0200
parents 12550:12962a1001c2
children 12552:b4bc5a715e65
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Mon Jun 13 19:17:36 2022 +0200
+++ b/plugins/mod_admin_shell.lua	Mon Jun 13 21:25:42 2022 +0200
@@ -1533,7 +1533,7 @@
 		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