Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 10461:e293fb8112e2
mod_admin_telnet: Display ALPN in show_tls() if supported and available
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 21 Nov 2019 00:16:20 +0100 |
parent | 10424:e7d3fa49495f |
child | 10470:5267f12b038d |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Fri Nov 29 21:30:08 2019 +0100 +++ b/plugins/mod_admin_telnet.lua Thu Nov 21 00:16:20 2019 +0100 @@ -590,6 +590,12 @@ 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