Software / code / prosody
Comparison
plugins/mod_admin_telnet.lua @ 9988:cdf0b63a0d61
mod_admin_telnet: added "(bosh)" and "(websocket)" connection flags (#998)
| author | Arc Riley <arcriley@gmail.com> |
|---|---|
| date | Thu, 02 May 2019 17:28:49 -0700 |
| parent | 9987:521fb218098d |
| child | 9989:026f9594f661 |
comparison
equal
deleted
inserted
replaced
| 9987:521fb218098d | 9988:cdf0b63a0d61 |
|---|---|
| 552 line[#line+1] = "(remote)"; | 552 line[#line+1] = "(remote)"; |
| 553 end | 553 end |
| 554 if session.is_bidi then | 554 if session.is_bidi then |
| 555 line[#line+1] = "(bidi)"; | 555 line[#line+1] = "(bidi)"; |
| 556 end | 556 end |
| 557 if session.bosh_version then | |
| 558 line[#line+1] = "(bosh)"; | |
| 559 end | |
| 560 if session.websocket_request then | |
| 561 line[#line+1] = "(websocket)"; | |
| 562 end | |
| 557 return table.concat(line, " "); | 563 return table.concat(line, " "); |
| 558 end | 564 end |
| 559 | 565 |
| 560 local function tls_info(session, line) | 566 local function tls_info(session, line) |
| 561 line = line or {}; | 567 line = line or {}; |