Comparison

plugins/mod_s2s.lua @ 11774:4625093b0768

mod_s2s: Add a Direct TLS listener Mirroring the c2s 'direct_tls'. Naming things is hard. direct_tls_s2s_ports = { 5269+1 }
author Kim Alvefur <zash@zash.se>
date Tue, 10 Aug 2021 20:55:43 +0200
parent 11773:c5f2b63cf6ff
child 11775:af9c7f3f4735
comparison
equal deleted inserted replaced
11773:c5f2b63cf6ff 11774:4625093b0768
965 protocol = "xmpp-server"; 965 protocol = "xmpp-server";
966 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>"; 966 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>";
967 }; 967 };
968 }); 968 });
969 969
970
971 module:provides("net", {
972 name = "direct_tls_s2s";
973 listener = listener;
974 encryption = "ssl";
975 ssl_config = {
976 verify = { "peer", "client_once", };
977 };
978 multiplex = {
979 protocol = "xmpp-server";
980 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>";
981 };
982 });
983