Mercurial > prosody-hg
comparison plugins/mod_websocket.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 | 7c57fb2ffbb0 |
comparison
equal
deleted
inserted
replaced
| 13747:c25ab2f47876 | 13749:08c2b7accd94 |
|---|---|
| 365 ["GET"] = handle_request; | 365 ["GET"] = handle_request; |
| 366 ["GET /"] = handle_request; | 366 ["GET /"] = handle_request; |
| 367 }; | 367 }; |
| 368 }); | 368 }); |
| 369 | 369 |
| 370 module:depends("http_altconnect", true); | 370 if module.host ~= "*" then |
| 371 module:depends("http_altconnect", true); | |
| 372 end | |
| 371 | 373 |
| 372 module:hook("c2s-read-timeout", keepalive, -0.9); | 374 module:hook("c2s-read-timeout", keepalive, -0.9); |
| 373 end | 375 end |
| 374 | 376 |
| 375 if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then | 377 if require"prosody.core.modulemanager".get_modules_for_host("*"):contains(module.name) then |
