# HG changeset patch # User Kim Alvefur # Date 1625355233 -7200 # Node ID 52c7a0e74bb2cbc6ab0178fda02a3c4639110f3d # Parent 51141309ffc4cecb9564d886941d3bd00f380a2f util.prosodyctl.check: Normalize potential to form without trailing '.' In some cases you might end up with both 'xmpp.example.com' and 'xmpp.example.com.', which are the same thing so no point in doing the same checks twice. diff -r 51141309ffc4 -r 52c7a0e74bb2 util/prosodyctl/check.lua --- a/util/prosodyctl/check.lua Sun Jul 04 01:32:04 2021 +0200 +++ b/util/prosodyctl/check.lua Sun Jul 04 01:33:53 2021 +0200 @@ -446,6 +446,8 @@ target_hosts:add(host); end + target_hosts = target_hosts / function(target) return target:gsub("%.$", ""); end + if target_hosts:contains("localhost") then print(" Target 'localhost' cannot be accessed from other servers"); target_hosts:remove("localhost");