# HG changeset patch # User Kim Alvefur # Date 1624200668 -7200 # Node ID 1ac8976f09a9c808cad89d97a188e9d3b4de7569 # Parent c8a9f77d48fd914b71c6863ad31488b6d712add0 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. diff -r c8a9f77d48fd -r 1ac8976f09a9 plugins/mod_c2s.lua --- 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";