diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-21 00:16:20 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-21 00:16:20 +0100 |
commit | 593c04436f5052d8ed201dc6a2f29e52ff5ab622 (patch) | |
tree | 8a213e149c68206df342625680c298abf1fb30af /plugins | |
parent | 6fd9868ed5e4ea8fd8521db50d863131d8d95a88 (diff) | |
download | prosody-593c04436f5052d8ed201dc6a2f29e52ff5ab622.tar.gz prosody-593c04436f5052d8ed201dc6a2f29e52ff5ab622.zip |
mod_admin_telnet: Display ALPN in show_tls() if supported and available
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index cef79d25..f3ab9597 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -590,6 +590,12 @@ local function tls_info(session, line) line[#line+1] = ("(SNI:%q)"):format(name); end end + if sock.getalpn then + local proto = sock:getalpn(); + if proto then + line[#line+1] = ("(ALPN:%q)"):format(proto); + end + end else line[#line+1] = "(insecure)"; end |