Diff

util/prosodyctl/check.lua @ 11799:8c9ec2db1d95

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.
author Kim Alvefur <zash@zash.se>
date Tue, 14 Sep 2021 01:41:59 +0200
parent 11798:ba88060fa145
child 11800:60018637f5d4
line wrap: on
line diff
--- 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("");