Diff

plugins/mod_c2s.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 10379:b917602eac04
child 10727:fa2a89132dfb
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Fri Nov 29 23:25:59 2019 +0100
+++ b/plugins/mod_c2s.lua	Fri Nov 29 23:27:51 2019 +0100
@@ -374,6 +374,7 @@
 	default_port = 5222;
 	encryption = "starttls";
 	multiplex = {
+		protocol = "xmpp-client";
 		pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:client%1.*>";
 	};
 });