aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-02-04 17:52:13 +0100
committerKim Alvefur <zash@zash.se>2022-02-04 17:52:13 +0100
commit89ace39a312a1cf7644c2270e15d3fdec1c58a95 (patch)
tree5e9cc0ef99350a5dfd1018ebfba735a7f406b674
parentc6e9692a003ba563adad91082ea3b8166a706029 (diff)
downloadprosody-89ace39a312a1cf7644c2270e15d3fdec1c58a95.tar.gz
prosody-89ace39a312a1cf7644c2270e15d3fdec1c58a95.zip
mod_bosh: Only enable host-agnostic HTTP routing when enabled globally
This way the host-agnostic http://*:5280/ handler is not enabled, but BOSH can still be used with any local VirtualHost Ref #1712
-rw-r--r--plugins/mod_bosh.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index ceb31a9f..9f08156c 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -556,4 +556,6 @@ function module.add_host(module)
});
end
-module:add_host();
+if require"core.modulemanager".get_modules_for_host("*"):contains(module.name) then
+ module:add_host();
+end