Diff

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
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Fri Nov 29 23:25:59 2019 +0100
+++ b/plugins/mod_s2s/mod_s2s.lua	Fri Nov 29 23:27:51 2019 +0100
@@ -796,6 +796,7 @@
 		verify = { "peer", "client_once", };
 	};
 	multiplex = {
+		protocol = "xmpp-server";
 		pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>";
 	};
 });