aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit593c04436f5052d8ed201dc6a2f29e52ff5ab622 (patch)
tree8a213e149c68206df342625680c298abf1fb30af /plugins
parent6fd9868ed5e4ea8fd8521db50d863131d8d95a88 (diff)
downloadprosody-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.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