# HG changeset patch # User Matthew Wild # Date 1331780724 0 # Node ID e9dc6ae68c69ffa9ed171282ff4be1b67ba2cefe # Parent d5739b8b7161679f41a23cee292cfaf299649475 mod_c2s, mod_s2s: Add multiplex support diff -r d5739b8b7161 -r e9dc6ae68c69 plugins/mod_c2s.lua --- a/plugins/mod_c2s.lua Thu Mar 15 03:05:02 2012 +0000 +++ b/plugins/mod_c2s.lua Thu Mar 15 03:05:24 2012 +0000 @@ -231,6 +231,9 @@ name = "legacy_ssl"; listener = listener; encryption = "ssl"; + multiplex = { + pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:client%1.*>"; + }; }); diff -r d5739b8b7161 -r e9dc6ae68c69 plugins/s2s/mod_s2s.lua --- a/plugins/s2s/mod_s2s.lua Thu Mar 15 03:05:02 2012 +0000 +++ b/plugins/s2s/mod_s2s.lua Thu Mar 15 03:05:24 2012 +0000 @@ -472,5 +472,8 @@ listener = listener; default_port = 5269; encryption = "starttls"; + multiplex = { + pattern = "^<.*:stream.*%sxmlns%s*=%s*(['\"])jabber:server%1.*>"; + }; });