mod_unified_push: Fix default ACL in component mode
authorMatthew Wild <mwild1@gmail.com>
Sat, 14 Jan 2023 16:14:50 +0000
changeset 5155 514c8a0e9aa1
parent 5154 2b6c543c4d3a
child 5156 342baedbd1c8
mod_unified_push: Fix default ACL in component mode
mod_unified_push/mod_unified_push.lua
--- a/mod_unified_push/mod_unified_push.lua	Sat Jan 14 15:32:24 2023 +0000
+++ b/mod_unified_push/mod_unified_push.lua	Sat Jan 14 16:14:50 2023 +0000
@@ -17,7 +17,7 @@
 module:add_feature(xmlns_up);
 
 local acl = module:get_option_set("unified_push_acl", {
-	module:get_host_type() == "local" and module.host or module.host:match("^[^%.]%.(.+)$")
+	module:get_host_type() == "local" and module.host or module.host:match("^[^%.]+%.(.+)$")
 });
 
 local function is_jid_permitted(user_jid)