Software /
code /
prosody
Changeset
12320:f0be98bab9dd
prosodyctl: check dns: Allow admin to specify undiscoverable external IPs in config
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 02 Mar 2022 16:12:28 +0000 |
parents | 12319:8fc3c06f922d |
children | 12362:0fd58f54d653 |
files | util/prosodyctl/check.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl/check.lua Wed Mar 02 16:02:42 2022 +0000 +++ b/util/prosodyctl/check.lua Wed Mar 02 16:12:28 2022 +0000 @@ -546,6 +546,11 @@ 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.");