Merge 13.0->trunk

This commit is contained in:
Kim Alvefur 2025-02-22 21:49:59 +01:00
commit 70ee43995c
3 changed files with 9 additions and 3 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

@ -239,7 +239,9 @@ function stream_callbacks.handlestanza(session, stanza)
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

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