prosodyctl: check: Skip DNS checks for known invalid domains (fixes traceback)

This commit is contained in:
Matthew Wild 2025-02-15 16:38:50 +00:00
parent f585db3acf
commit 500d0df0a4

View file

@ -928,7 +928,11 @@ local function check(arg)
local unknown_addresses = set.new();
for jid in enabled_hosts() do
local function is_valid_domain(domain)
return idna.to_ascii(domain) ~= nil;
end
for jid in it.filter(is_valid_domain, enabled_hosts()) do
local all_targets_ok, some_targets_ok = true, false;
local node, host = jid_split(jid);