mod_bosh: Only enable host-agnostic HTTP routing when enabled globally
authorKim Alvefur <zash@zash.se>
Fri, 04 Feb 2022 17:52:13 +0100
changeset 12266 50525021c2c7
parent 12265 f7946c8e502f
child 12267 168970ce8543
mod_bosh: Only enable host-agnostic HTTP routing when enabled globally This way the host-agnostic http://*:5280/ handler is not enabled, but BOSH can still be used with any local VirtualHost Ref #1712
plugins/mod_bosh.lua
--- a/plugins/mod_bosh.lua	Fri Feb 04 16:40:38 2022 +0100
+++ b/plugins/mod_bosh.lua	Fri Feb 04 17:52:13 2022 +0100
@@ -556,4 +556,6 @@
 	});
 end
 
-module:add_host();
+if require"core.modulemanager".get_modules_for_host("*"):contains(module.name) then
+	module:add_host();
+end