aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorArc Riley <arcriley@gmail.com>2019-05-02 17:28:49 -0700
committerArc Riley <arcriley@gmail.com>2019-05-02 17:28:49 -0700
commitcdbb6348f6536cb270544c933f3e45ccf66ef585 (patch)
treea2d091ba94498f9c4061d485d0bf4d9e4a7599b9 /plugins/mod_admin_telnet.lua
parent30ef8e7ac46587732ab469e9775229e8d78e1845 (diff)
downloadprosody-cdbb6348f6536cb270544c933f3e45ccf66ef585.tar.gz
prosody-cdbb6348f6536cb270544c933f3e45ccf66ef585.zip
mod_admin_telnet: added "(bosh)" and "(websocket)" connection flags (#998)
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r--plugins/mod_admin_telnet.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 5ee25771..248d6b07 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -554,6 +554,12 @@ local function session_flags(session, line)
if session.is_bidi then
line[#line+1] = "(bidi)";
end
+ if session.bosh_version then
+ line[#line+1] = "(bosh)";
+ end
+ if session.websocket_request then
+ line[#line+1] = "(websocket)";
+ end
return table.concat(line, " ");
end