Changeset

10252:aa3f98853816

mod_admin_telnet: Identify native bidi sessions
author Kim Alvefur <zash@zash.se>
date Sun, 08 Sep 2019 18:51:15 +0200
parents 10251:022d42e122d4
children 10253:7a4fd14963c5
files plugins/mod_admin_telnet.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Sun Sep 08 18:51:57 2019 +0200
+++ b/plugins/mod_admin_telnet.lua	Sun Sep 08 18:51:15 2019 +0200
@@ -552,7 +552,9 @@
 	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