aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-03-02 16:12:28 +0000
committerMatthew Wild <mwild1@gmail.com>2022-03-02 16:12:28 +0000
commitb6bf4788aa3d5c7ee847c690fcd0fbd9346a5dc7 (patch)
treeef292cca4d2796eda6151cf6f705f5cf51e43886 /util/prosodyctl
parent79d9ce56ac6d6a09f0094c59c775e0e423be69bc (diff)
downloadprosody-b6bf4788aa3d5c7ee847c690fcd0fbd9346a5dc7.tar.gz
prosody-b6bf4788aa3d5c7ee847c690fcd0fbd9346a5dc7.zip
prosodyctl: check dns: Allow admin to specify undiscoverable external IPs in config
Diffstat (limited to 'util/prosodyctl')
-rw-r--r--util/prosodyctl/check.lua5
1 files changed, 5 insertions, 0 deletions
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.");