aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/mod_s2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-11-29 23:27:51 +0100
committerKim Alvefur <zash@zash.se>2019-11-29 23:27:51 +0100
commit349ac37e3c11f3fa28dde84f9946620c6235930a (patch)
tree69d0f584473e7af9d56eba8aa56dd07be64a0954 /plugins/mod_s2s/mod_s2s.lua
parente0a077e53b7daa04975397bbd3fdc49b73ef0f50 (diff)
downloadprosody-349ac37e3c11f3fa28dde84f9946620c6235930a.tar.gz
prosody-349ac37e3c11f3fa28dde84f9946620c6235930a.zip
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.
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 7cd90a84..7f6546e9 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -796,6 +796,7 @@ module:provides("net", {
verify = { "peer", "client_once", };
};
multiplex = {
+ protocol = "xmpp-server";
pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>";
};
});