comparison 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
parents c3c4281c1339
children b1e9942ce471 a4327478678f
comparison
equal deleted inserted replaced
13747:c25ab2f47876 13749:08c2b7accd94
556 ["POST"] = handle_POST; 556 ["POST"] = handle_POST;
557 ["POST /"] = handle_POST; 557 ["POST /"] = handle_POST;
558 }; 558 };
559 }); 559 });
560 560
561 module:depends("http_altconnect", true); 561 if module.host ~= "*" then
562 module:depends("http_altconnect", true);
563 end
562 end 564 end
563 565
564 if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then 566 if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then
565 module:add_host(); 567 module:add_host();
566 end 568 end