From bf228a8a7a5cbd12596e94f5f226938b30e69712 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 14 Sep 2021 01:41:59 +0200 Subject: 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. --- util/prosodyctl/check.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util/prosodyctl') diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua index 9dadbe19..92e0a0e8 100644 --- a/util/prosodyctl/check.lua +++ b/util/prosodyctl/check.lua @@ -253,6 +253,8 @@ local function check(arg) 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(""); -- cgit v1.2.3