Changeset

11614:1ac8976f09a9

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.
author Kim Alvefur <zash@zash.se>
date Sun, 20 Jun 2021 16:51:08 +0200
parents 11613:c8a9f77d48fd
children 11615:8e16fd976c57
files plugins/mod_c2s.lua
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Sun Jun 20 17:14:17 2021 +0200
+++ b/plugins/mod_c2s.lua	Sun Jun 20 16:51:08 2021 +0200
@@ -426,6 +426,16 @@
 });
 
 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";