Diff

plugins/s2s/mod_s2s.lua @ 4620:e9dc6ae68c69

mod_c2s, mod_s2s: Add multiplex support
author Matthew Wild <mwild1@gmail.com>
date Thu, 15 Mar 2012 03:05:24 +0000
parent 4610:171051f9dd00
child 4622:9eccb5a27989
line wrap: on
line diff
--- 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.*>";
+	};
 });