aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_adhoc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-07 17:07:02 +0100
committerKim Alvefur <zash@zash.se>2019-11-07 17:07:02 +0100
commit5164f0f45c0a4e68aea9887ee13e2900b19cdf57 (patch)
tree0ddd4638e98e22c1220d0bb541dc1332064c1e3f /plugins/mod_admin_adhoc.lua
parenta9980f81fadf325ed8f609ae3787c061dba63f94 (diff)
downloadprosody-5164f0f45c0a4e68aea9887ee13e2900b19cdf57.tar.gz
prosody-5164f0f45c0a4e68aea9887ee13e2900b19cdf57.zip
mod_admin_adhoc: Add some flags to s2s listing command
These are present in mod_admin_telnet and relevant to s2s
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r--plugins/mod_admin_adhoc.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index 37e77ab0..4fea5a73 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -392,6 +392,12 @@ local function session_flags(session, line)
if session.cert_identity_status == "valid" then
flags[#flags+1] = "authenticated";
end
+ if session.dialback_key then
+ flags[#flags+1] = "dialback";
+ end
+ if session.external_auth then
+ flags[#flags+1] = "SASL";
+ end
if session.secure then
flags[#flags+1] = "encrypted";
end
@@ -404,6 +410,12 @@ local function session_flags(session, line)
if session.ip and session.ip:match(":") then
flags[#flags+1] = "IPv6";
end
+ if session.incoming and session.outgoing then
+ flags[#flags+1] = "bidi";
+ elseif session.is_bidi or session.bidi_session then
+ flags[#flags+1] = "bidi";
+ end
+
line[#line+1] = "("..t_concat(flags, ", ")..")";
return t_concat(line, " ");