aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua4
-rw-r--r--plugins/mod_websocket.lua4
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index fc2c92ae..2d1b1922 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -558,7 +558,9 @@ function module.add_host(module)
};
});
- module:depends("http_altconnect", true);
+ if module.host ~= "*" then
+ module:depends("http_altconnect", true);
+ end
end
if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua
index dfc1a215..206ad678 100644
--- a/plugins/mod_websocket.lua
+++ b/plugins/mod_websocket.lua
@@ -367,7 +367,9 @@ function module.add_host(module)
};
});
- module:depends("http_altconnect", true);
+ if module.host ~= "*" then
+ module:depends("http_altconnect", true);
+ end
module:hook("c2s-read-timeout", keepalive, -0.9);
end