aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-08-10 20:55:43 +0200
committerKim Alvefur <zash@zash.se>2021-08-10 20:55:43 +0200
commit702d8a9ab49e326fbdd73229a9ab7fda42ecfa84 (patch)
tree7352d81b1ea0a289a257f0f68c8d3dc46aea072f /plugins
parentc42a125cc727bd0a9f5856054a6e75b415bbee92 (diff)
downloadprosody-702d8a9ab49e326fbdd73229a9ab7fda42ecfa84.tar.gz
prosody-702d8a9ab49e326fbdd73229a9ab7fda42ecfa84.zip
mod_s2s: Add a Direct TLS listener
Mirroring the c2s 'direct_tls'. Naming things is hard. direct_tls_s2s_ports = { 5269+1 }
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_s2s.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua
index f4cf9444..80e4a124 100644
--- a/plugins/mod_s2s.lua
+++ b/plugins/mod_s2s.lua
@@ -967,3 +967,17 @@ module:provides("net", {
};
});
+
+module:provides("net", {
+ name = "direct_tls_s2s";
+ listener = listener;
+ encryption = "ssl";
+ ssl_config = {
+ verify = { "peer", "client_once", };
+ };
+ multiplex = {
+ protocol = "xmpp-server";
+ pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>";
+ };
+});
+