mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
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
This commit is contained in:
parent
c6e9692a00
commit
89ace39a31
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue