# HG changeset patch # User Kim Alvefur # Date 1740257399 -3600 # Node ID 7c98981d3fe92a4f09491e8fe675cb06da0f5ed9 # Parent 891869c51033fd32b36db5e6f62df3fa3de38f4b# Parent 53c39fdb007f6b35e0b7138d8bcf042e2a8f2cb9 Merge 13.0->trunk diff -r 891869c51033 -r 7c98981d3fe9 plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Sat Feb 22 09:41:29 2025 +0000 +++ b/plugins/mod_bosh.lua Sat Feb 22 21:49:59 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 891869c51033 -r 7c98981d3fe9 plugins/mod_component.lua --- a/plugins/mod_component.lua Sat Feb 22 09:41:29 2025 +0000 +++ b/plugins/mod_component.lua Sat Feb 22 21:49:59 2025 +0100 @@ -239,7 +239,9 @@ end if not stanza.attr.to then session.log("warn", "Rejecting stanza with no 'to' address"); - session.send(st.error_reply(stanza, "modify", "bad-request", "Components MUST specify a 'to' address on stanzas")); + if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then + session.send(st.error_reply(stanza, "modify", "bad-request", "Components MUST specify a 'to' address on stanzas")); + end return; end end diff -r 891869c51033 -r 7c98981d3fe9 plugins/mod_websocket.lua --- a/plugins/mod_websocket.lua Sat Feb 22 09:41:29 2025 +0000 +++ b/plugins/mod_websocket.lua Sat Feb 22 21:49:59 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