mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_websocket: 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
89ace39a31
commit
e2f8d0b70f
1 changed files with 3 additions and 1 deletions
|
@ -364,4 +364,6 @@ function module.add_host(module)
|
|||
module:hook("c2s-read-timeout", keepalive, -0.9);
|
||||
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