aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-21 00:16:20 +0100
committerKim Alvefur <zash@zash.se>2019-11-21 00:16:20 +0100
commit2d7eada577d9288f749a7831b67e049af3cbee1a (patch)
tree8a213e149c68206df342625680c298abf1fb30af
parent83f9904a4873ee7507a86e446bba1b713f7500c4 (diff)
downloadprosody-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.lua6
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