Changeset

13749:08c2b7accd94 13.0

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
author Kim Alvefur <zash@zash.se>
date Sat, 22 Feb 2025 21:45:34 +0100
parents 13747:c25ab2f47876
children 13750:53c39fdb007f
files plugins/mod_bosh.lua plugins/mod_websocket.lua
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_bosh.lua	Sat Feb 22 09:35:04 2025 +0000
+++ b/plugins/mod_bosh.lua	Sat Feb 22 21:45:34 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_websocket.lua	Sat Feb 22 09:35:04 2025 +0000
+++ b/plugins/mod_websocket.lua	Sat Feb 22 21:45:34 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