From 89ace39a312a1cf7644c2270e15d3fdec1c58a95 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 4 Feb 2022 17:52:13 +0100 Subject: 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua index ceb31a9f..9f08156c 100644 --- a/plugins/mod_bosh.lua +++ b/plugins/mod_bosh.lua @@ -556,4 +556,6 @@ function module.add_host(module) }); end -module:add_host(); +if require"core.modulemanager".get_modules_for_host("*"):contains(module.name) then + module:add_host(); +end -- cgit v1.2.3