Software /
code /
prosody-modules
Changeset
6148:c90aab23fb9b
mod_persisthosts: Also skip defined Components (thanks gtech1)
Thought Components also had `defined=true`, but apparently not.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 11 Jan 2025 12:12:18 +0100 |
parents | 6147:6ba0489e4828 |
children | 6149:045abdc53ba4 |
files | mod_persisthosts/mod_persisthosts.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_persisthosts/mod_persisthosts.lua Fri Jan 10 23:17:09 2025 +0100 +++ b/mod_persisthosts/mod_persisthosts.lua Sat Jan 11 12:12:18 2025 +0100 @@ -11,7 +11,7 @@ local original = set.new(); for host, config in pairs(cm.getconfig()) do - if config["defined"] then + if config["defined"] or config["component_module"] then original:add(host); end end