# HG changeset patch # User Kim Alvefur # Date 1740257134 -3600 # Node ID 08c2b7accd944f8db8b1b80476e4bcb5283242be # Parent c25ab2f478764602a4d79905ae00d78fdd5efd5e 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 diff -r c25ab2f47876 -r 08c2b7accd94 plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Sat Feb 22 09:35:04 2025 +0000 +++ b/plugins/mod_bosh.lua Sat Feb 22 21:45:34 2025 +0100 @@ -558,7 +558,9 @@ }; }); - 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 diff -r c25ab2f47876 -r 08c2b7accd94 plugins/mod_websocket.lua --- a/plugins/mod_websocket.lua Sat Feb 22 09:35:04 2025 +0000 +++ b/plugins/mod_websocket.lua Sat Feb 22 21:45:34 2025 +0100 @@ -367,7 +367,9 @@ }; }); - module:depends("http_altconnect", true); + if module.host ~= "*" then + module:depends("http_altconnect", true); + end module:hook("c2s-read-timeout", keepalive, -0.9); end