# HG changeset patch # User Kim Alvefur # Date 1574291780 -3600 # Node ID e293fb8112e235154a0817833f1bb8d328f1279d # Parent 5ce6cbb5ce6a4cd8cf2c1021a6614c2734b6e617 mod_admin_telnet: Display ALPN in show_tls() if supported and available diff -r 5ce6cbb5ce6a -r e293fb8112e2 plugins/mod_admin_telnet.lua --- 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