Changeset

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
parents 11798:ba88060fa145
children 11800:60018637f5d4
files util/prosodyctl/check.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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("");