Comparison

plugins/mod_s2s/mod_s2s.lua @ 10465:09697a673015

mod_net_multiplex: Add support for using ALPN Potentially a bit more efficient since it can jump to the selected protocol on connect instead of waiting for some data to look at. Adds a 'protocol' field to net providers for this purpose.
author Kim Alvefur <zash@zash.se>
date Fri, 29 Nov 2019 23:27:51 +0100
parent 10459:7456eaa83b15
child 10471:ae906d51e3d2
comparison
equal deleted inserted replaced
10464:8d3acf16c404 10465:09697a673015
794 encryption = "starttls"; 794 encryption = "starttls";
795 ssl_config = { -- FIXME This is not used atm, see mod_tls 795 ssl_config = { -- FIXME This is not used atm, see mod_tls
796 verify = { "peer", "client_once", }; 796 verify = { "peer", "client_once", };
797 }; 797 };
798 multiplex = { 798 multiplex = {
799 protocol = "xmpp-server";
799 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>"; 800 pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>";
800 }; 801 };
801 }); 802 });
802 803