Mercurial > prosody-modules
comparison mod_authz_delegate/mod_authz_delegate.lua @ 6407:6ebda1e5b4f3
mod_authz_delegate: Ruse parent host logic from mod_authz_internal
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 18 Feb 2026 16:34:37 +0100 |
| parents | 98d5acb93439 |
| children |
comparison
equal
deleted
inserted
replaced
| 6406:cab284eaeb81 | 6407:6ebda1e5b4f3 |
|---|---|
| 1 local target_host = assert(module:get_option("authz_delegate_to")); | 1 local host = module.host; |
| 2 local host_suffix = module:get_option_string("parent_host", (host:gsub("^[^%.]+%.", ""))); | |
| 3 local target_host = module:get_option("authz_delegate_to", host_suffix); | |
| 2 local this_host = module:get_host(); | 4 local this_host = module:get_host(); |
| 3 | 5 |
| 4 local array = require"util.array"; | 6 local array = require"util.array"; |
| 5 local jid_split = import("prosody.util.jid", "split"); | 7 local jid_split = import("prosody.util.jid", "split"); |
| 6 | 8 |
