Software /
code /
prosody
Changeset
4620:e9dc6ae68c69
mod_c2s, mod_s2s: Add multiplex support
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 15 Mar 2012 03:05:24 +0000 |
parents | 4619:d5739b8b7161 |
children | 4622:9eccb5a27989 |
files | plugins/mod_c2s.lua plugins/s2s/mod_s2s.lua |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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.*>"; + }; });
--- 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.*>"; + }; });