diff options
author | Kim Alvefur <zash@zash.se> | 2022-02-04 17:52:13 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-02-04 17:52:13 +0100 |
commit | 89ace39a312a1cf7644c2270e15d3fdec1c58a95 (patch) | |
tree | 5e9cc0ef99350a5dfd1018ebfba735a7f406b674 /plugins | |
parent | c6e9692a003ba563adad91082ea3b8166a706029 (diff) | |
download | prosody-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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_bosh.lua | 4 |
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 |