Software / code / prosody
Comparison
plugins/mod_admin_telnet.lua @ 9711:39dc037875e1
admin_telnet: show when bidi is used on s2s
| author | Maxime “pep” Buquet <pep@bouah.net> |
|---|---|
| date | Tue, 18 Dec 2018 20:23:33 +0000 |
| parent | 9691:e11e076f0eb8 |
| child | 9734:cc01bb7a3305 |
comparison
equal
deleted
inserted
replaced
| 9710:8649a6b010e2 | 9711:39dc037875e1 |
|---|---|
| 519 line[#line+1] = "(IPv6)"; | 519 line[#line+1] = "(IPv6)"; |
| 520 end | 520 end |
| 521 if session.remote then | 521 if session.remote then |
| 522 line[#line+1] = "(remote)"; | 522 line[#line+1] = "(remote)"; |
| 523 end | 523 end |
| 524 if session.is_bidi then | |
| 525 line[#line+1] = "(bidi)"; | |
| 526 end | |
| 524 return table.concat(line, " "); | 527 return table.concat(line, " "); |
| 525 end | 528 end |
| 526 | 529 |
| 527 local function tls_info(session, line) | 530 local function tls_info(session, line) |
| 528 line = line or {}; | 531 line = line or {}; |