Changeset

13751:7c98981d3fe9

Merge 13.0->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 22 Feb 2025 21:49:59 +0100
parents 13748:891869c51033 (current diff) 13750:53c39fdb007f (diff)
children 13753:07b6a669f7f1
files
diffstat 3 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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
--- 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