Changeset

11653:51141309ffc4

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.
author Kim Alvefur <zash@zash.se>
date Sun, 04 Jul 2021 01:32:04 +0200
parents 11652:887d7b15e21b
children 11654:52c7a0e74bb2
files util/prosodyctl/check.lua
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/util/prosodyctl/check.lua	Sun Jul 04 01:29:47 2021 +0200
+++ b/util/prosodyctl/check.lua	Sun Jul 04 01:32:04 2021 +0200
@@ -518,6 +518,16 @@
 					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");