Comparison

plugins/mod_websocket.lua @ 12263:168970ce8543

mod_websocket: 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
author Kim Alvefur <zash@zash.se>
date Fri, 04 Feb 2022 17:59:42 +0100
parent 11868:ae093c259da2
child 12444:b33558969b3e
comparison
equal deleted inserted replaced
12262:50525021c2c7 12263:168970ce8543
362 }); 362 });
363 363
364 module:hook("c2s-read-timeout", keepalive, -0.9); 364 module:hook("c2s-read-timeout", keepalive, -0.9);
365 end 365 end
366 366
367 module:add_host(); 367 if require"core.modulemanager".get_modules_for_host("*"):contains(module.name) then
368 module:add_host();
369 end