aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-04 01:32:04 +0200
committerKim Alvefur <zash@zash.se>2021-07-04 01:32:04 +0200
commit57ac8669053e5d69629f2d5323ddd3b00570fded (patch)
treede4fd2634d1f44f4eeb3aac1feab75f1b70071d3 /util
parent0409851d7478f94213970f91afbbb870a0d7589d (diff)
downloadprosody-57ac8669053e5d69629f2d5323ddd3b00570fded.tar.gz
prosody-57ac8669053e5d69629f2d5323ddd3b00570fded.zip
util.prosodyctl.check: Point out if A/AAAA exists despite disabled IPvX
Clients would try to connect and receive an error or timeout, increasing the time it takes to establish a connection. Probably not what you want. If you really want IPv6 or IPv4 disabled, best remove the A or AAAA record.
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl/check.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua
index f8c8c55e..f2d0d0df 100644
--- a/util/prosodyctl/check.lua
+++ b/util/prosodyctl/check.lua
@@ -518,6 +518,16 @@ local function check(arg)
end
end
+ if host_ok_v4 and not use_ipv4 then
+ print(" Host "..target_host.." does seem to resolve to this server but IPv4 has been disabled");
+ all_targets_ok = false;
+ end
+
+ if host_ok_v6 and not use_ipv6 then
+ print(" Host "..target_host.." does seem to resolve to this server but IPv6 has been disabled");
+ all_targets_ok = false;
+ end
+
local bad_protos = {}
if use_ipv4 and not host_ok_v4 then
table.insert(bad_protos, "IPv4");