mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_bosh,mod_websocket: Don't load mod_http_altconnect in global context
It blocked loading on VirtualHosts since it was already loaded globally Thanks eTaurus
This commit is contained in:
parent
783c8fcc81
commit
68296b6a8e
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue