Diff

plugins/mod_admin_shell.lua @ 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
parent 12540:0684506c99d3
child 12589:39ae08180c81
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