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:
Kim Alvefur 2025-02-22 21:45:34 +01:00
parent 783c8fcc81
commit 68296b6a8e
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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