prosodyctl: check config: Skip bare JID components in orphan check 0.12
authorMatthew Wild <mwild1@gmail.com>
Sat, 19 Mar 2022 09:28:27 +0000
branch0.12
changeset 12418 a93e65784f2c
parent 12397 6966026262f4
child 12419 01ba67e7f824
child 12420 19fd28239e73
prosodyctl: check config: Skip bare JID components in orphan check
util/prosodyctl/check.lua
--- a/util/prosodyctl/check.lua	Wed Mar 16 19:32:17 2022 +0100
+++ b/util/prosodyctl/check.lua	Sat Mar 19 09:28:27 2022 +0000
@@ -667,7 +667,7 @@
 					end
 				end
 			end
-			for host, host_config in enabled_hosts() do
+			for host, host_config in it.filter(skip_bare_jid_hosts, enabled_hosts()) do
 				local is_component = not not host_config.component_module;
 				if is_component then
 					local parent_domain = host:match("^[^.]+%.(.+)$");