aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-06-20 16:51:08 +0200
committerKim Alvefur <zash@zash.se>2021-06-20 16:51:08 +0200
commitdb64810141ca7b3c91523d90797ab62333aa18f1 (patch)
tree56b5936e8f304160736e6d09e0012b2b5b972043 /plugins
parentf5576be639a5b9cf079c7313b89cc4519cd0c3f2 (diff)
downloadprosody-db64810141ca7b3c91523d90797ab62333aa18f1.tar.gz
prosody-db64810141ca7b3c91523d90797ab62333aa18f1.zip
mod_c2s: Add a Direct TLS listener
This only differs from 'legacy_ssl' in name, at least on the server side. For clients this is the one that uses SRV records.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_c2s.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index cd4b0f71..620bfce4 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -426,6 +426,16 @@ module:provides("net", {
});
module:provides("net", {
+ name = "direct_tls";
+ listener = listener;
+ encryption = "ssl";
+ multiplex = {
+ pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:client%1.*>";
+ };
+});
+
+-- COMPAT
+module:provides("net", {
name = "legacy_ssl";
listener = listener;
encryption = "ssl";