diff options
author | Kim Alvefur <zash@zash.se> | 2019-09-08 18:51:15 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-09-08 18:51:15 +0200 |
commit | f1dfdac89b396d5c390d64550123a5a1fc54b554 (patch) | |
tree | 69eacb60b587d9712b89265036b5e1a65f2adaae /plugins/mod_admin_telnet.lua | |
parent | 445057889fe5f3abf431eb7a5695baca77a79031 (diff) | |
download | prosody-f1dfdac89b396d5c390d64550123a5a1fc54b554.tar.gz prosody-f1dfdac89b396d5c390d64550123a5a1fc54b554.zip |
mod_admin_telnet: Identify native bidi sessions
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index c184924c..5c08b8d1 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -552,7 +552,9 @@ local function session_flags(session, line) if session.remote then line[#line+1] = "(remote)"; end - if session.is_bidi or session.bidi_session then + if session.incoming and session.outgoing then + line[#line+1] = "(bidi)"; + elseif session.is_bidi or session.bidi_session then line[#line+1] = "(bidi)"; end if session.bosh_version then |