Diff

plugins/mod_bosh.lua @ 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
parent 13720:c3c4281c1339
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