Mercurial > prosody-hg
changeset 13990:cf21d285385b
core.moduleapi: Fix :context() called from a global module
Because `is_global` defaults to nil, it passes trough the metatabele to
the calling module, so a host context retrieved from a global module
would have the .global flag be true. This causes trouble with the code
retrieving the hostname in `module:http_url()`, so `http:list()` in the
shell would produce host URLs like `https://*:5281/`
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 05 Nov 2025 16:19:50 +0100 |
| parents | a8aa17293d22 |
| children | 0ff11f2e87cd |
| files | core/moduleapi.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
