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 | 2d7eada577d9288f749a7831b67e049af3cbee1a (patch) | |
tree | 8a213e149c68206df342625680c298abf1fb30af | |
parent | 83f9904a4873ee7507a86e446bba1b713f7500c4 (diff) | |
download | prosody-2d7eada577d9288f749a7831b67e049af3cbee1a.tar.gz prosody-2d7eada577d9288f749a7831b67e049af3cbee1a.zip |
mod_admin_telnet: Display ALPN in show_tls() if supported and available
-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 |