Software / code / prosody
Comparison
plugins/mod_admin_shell.lua @ 12023:5a3781a12285
mod_admin_shell: Add port as a c2s/s2s:show column definition
Allows inferring whether Direct TLS was used, or perhaps which SRV
record was chosen. Not shown by default.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 07 Dec 2021 13:21:20 +0100 |
| parent | 12019:a0b6896bb538 |
| child | 12056:e62025f949f9 |
comparison
equal
deleted
inserted
replaced
| 12022:eedd3eff0768 | 12023:5a3781a12285 |
|---|---|
| 688 width = 22; | 688 width = 22; |
| 689 mapper = function(_, session) | 689 mapper = function(_, session) |
| 690 return select(2, get_s2s_hosts(session)); | 690 return select(2, get_s2s_hosts(session)); |
| 691 end; | 691 end; |
| 692 }; | 692 }; |
| 693 port = { | |
| 694 title = "Port"; | |
| 695 width = 5; | |
| 696 align = "right"; | |
| 697 key = "conn"; | |
| 698 mapper = function(conn) return conn:serverport(); end; | |
| 699 }; | |
| 693 dir = { | 700 dir = { |
| 694 title = "Dir"; | 701 title = "Dir"; |
| 695 width = 3; | 702 width = 3; |
| 696 key = "direction"; | 703 key = "direction"; |
| 697 mapper = function(dir, session) | 704 mapper = function(dir, session) |