Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
12550:12962a1001c2 | 12551:3b7e97e0a8ef |
---|---|
1531 module:context(localhost):unhook("s2s-authenticated", onauthenticated); | 1531 module:context(localhost):unhook("s2s-authenticated", onauthenticated); |
1532 module:unhook("s2sout-established", onestablished); | 1532 module:unhook("s2sout-established", onestablished); |
1533 module:unhook("s2sin-established", onestablished); | 1533 module:unhook("s2sin-established", onestablished); |
1534 module:unhook("s2s-destroyed", ondestroyed); | 1534 module:unhook("s2s-destroyed", ondestroyed); |
1535 end):next(function(pong) | 1535 end):next(function(pong) |
1536 return ("pong from %s in %gs"):format(pong.stanza.attr.from, time.now() - time_start); | 1536 return ("pong from %s on %s in %gs"):format(pong.stanza.attr.from, pong.origin.id, time.now() - time_start); |
1537 end); | 1537 end); |
1538 end | 1538 end |
1539 | 1539 |
1540 def_env.dns = {}; | 1540 def_env.dns = {}; |
1541 local adns = require"net.adns"; | 1541 local adns = require"net.adns"; |