util.prosodyctl.check: Fix to not treat some options as misplaced
All 'net' providers generate a _port option which must be in the global
section, but this mistakenly also warns about these options as well.
--- a/util/prosodyctl/check.lua Tue Sep 14 01:34:30 2021 +0200
+++ b/util/prosodyctl/check.lua Tue Sep 14 01:41:59 2021 +0200
@@ -253,6 +253,8 @@
misplaced_options:add(name);
end
end
+ -- FIXME These _could_ be misplaced, but we would have to check where the corresponding module is loaded to be sure
+ misplaced_options:exclude(set.new({ "external_service_port", "turn_external_port" }));
if not misplaced_options:empty() then
ok = false;
print("");