# HG changeset patch # User Kim Alvefur # Date 1573142822 -3600 # Node ID fa50789d6ec760045af4e89d44b538fca5609244 # Parent 921e8b00778e10dd7fab8bda89323af5be2da091 mod_admin_adhoc: Add some flags to s2s listing command These are present in mod_admin_telnet and relevant to s2s diff -r 921e8b00778e -r fa50789d6ec7 plugins/mod_admin_adhoc.lua --- a/plugins/mod_admin_adhoc.lua Thu Nov 07 00:20:54 2019 +0100 +++ b/plugins/mod_admin_adhoc.lua Thu Nov 07 17:07:02 2019 +0100 @@ -392,6 +392,12 @@ 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 @@ 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, " ");