diff options
author | Kim Alvefur <zash@zash.se> | 2021-09-14 01:41:59 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-09-14 01:41:59 +0200 |
commit | bf228a8a7a5cbd12596e94f5f226938b30e69712 (patch) | |
tree | 3f979cc16081b16d28343518f1153acf5499f647 /util/prosodyctl | |
parent | 51991185e15fcc6fed5950d99de09698212f3a0a (diff) | |
download | prosody-bf228a8a7a5cbd12596e94f5f226938b30e69712.tar.gz prosody-bf228a8a7a5cbd12596e94f5f226938b30e69712.zip |
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.
Diffstat (limited to 'util/prosodyctl')
-rw-r--r-- | util/prosodyctl/check.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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(""); |