diff options
author | Kim Alvefur <zash@zash.se> | 2025-02-22 21:45:34 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2025-02-22 21:45:34 +0100 |
commit | 68296b6a8e6faa6ff076f634960d21adf5f17ada (patch) | |
tree | 513f13d676184973c5c320dac5a5373f9ffc01b5 | |
parent | 783c8fcc81b17b7c2160d2857f296ba2e94d8476 (diff) | |
download | prosody-68296b6a8e6faa6ff076f634960d21adf5f17ada.tar.gz prosody-68296b6a8e6faa6ff076f634960d21adf5f17ada.zip |
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
-rw-r--r-- | plugins/mod_bosh.lua | 4 | ||||
-rw-r--r-- | plugins/mod_websocket.lua | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index fc2c92ae..2d1b1922 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -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 diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua index dfc1a215..206ad678 100644 --- a/plugins/mod_websocket.lua +++ b/plugins/mod_websocket.lua @@ -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 |