From b6bf4788aa3d5c7ee847c690fcd0fbd9346a5dc7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 2 Mar 2022 16:12:28 +0000 Subject: prosodyctl: check dns: Allow admin to specify undiscoverable external IPs in config --- util/prosodyctl/check.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua index 70f9e7b0..bbae13fe 100644 --- a/util/prosodyctl/check.lua +++ b/util/prosodyctl/check.lua @@ -546,6 +546,11 @@ local function check(arg) end end + -- Allow admin to specify additional (e.g. undiscoverable) IP addresses in the config + for _, address in ipairs(configmanager.get("*", "external_addresses") or {}) do + external_addresses:add(address); + end + if external_addresses:empty() then print(""); print(" Failed to determine the external addresses of this server. Checks may be inaccurate."); -- cgit v1.2.3