Mercurial > prosody-hg
comparison plugins/mod_bosh.lua @ 12262:50525021c2c7
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
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 04 Feb 2022 17:52:13 +0100 |
| parents | ae093c259da2 |
| children | b33558969b3e |
comparison
equal
deleted
inserted
replaced
| 12261:f7946c8e502f | 12262:50525021c2c7 |
|---|---|
| 554 ["POST /"] = handle_POST; | 554 ["POST /"] = handle_POST; |
| 555 }; | 555 }; |
| 556 }); | 556 }); |
| 557 end | 557 end |
| 558 | 558 |
| 559 module:add_host(); | 559 if require"core.modulemanager".get_modules_for_host("*"):contains(module.name) then |
| 560 module:add_host(); | |
| 561 end |
