diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-06-20 10:42:57 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-06-20 10:42:57 +0100 |
commit | c5bd62df9883ccb38e204d2f62531db958d1a9a6 (patch) | |
tree | 8654a05701a0cf548f1d819afcb3a5bdc81c49ea | |
parent | 06a10d3a77d031a12881a98319d963e127240166 (diff) | |
download | prosody-c5bd62df9883ccb38e204d2f62531db958d1a9a6.tar.gz prosody-c5bd62df9883ccb38e204d2f62531db958d1a9a6.zip |
prosodyctl: check: Replace loaded-module calculation with a more accurate query to modulemanager, fixes #1171
-rwxr-xr-x | prosodyctl | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1079,9 +1079,11 @@ function commands.check(arg) target_hosts:remove("localhost"); end - local modules = set.new(it.to_array(it.values(host_options.modules_enabled or {}))) - + set.new(it.to_array(it.values(configmanager.get("*", "modules_enabled") or {}))) - + set.new({ configmanager.get(host, "component_module") }); + local modules, component_module = modulemanager.get_modules_for_host(host); + + if component_module then + modules:add(component_module); + end if modules:contains("proxy65") then local proxy65_target = configmanager.get(host, "proxy65_address") or host; |