prosodyctl check: Include global options when checking "all options"

This commit is contained in:
Kim Alvefur 2015-12-03 15:51:22 +01:00
parent d3b6588fd7
commit ec4a62325a

View file

@ -913,7 +913,7 @@ function commands.check(arg)
print(" For more information see: http://prosody.im/doc/dns");
end
end
local all_options = set.new();
local all_options = set.new(it.to_array(it.keys(config["*"])));
for host in enabled_hosts() do
all_options:include(set.new(it.to_array(it.keys(config[host]))));
end