aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-20 18:58:09 +0100
committerKim Alvefur <zash@zash.se>2021-11-20 18:58:09 +0100
commit8756adf72bad6edbda41747267e74a8e04332916 (patch)
treeab328542ddf29a235cd9ac9170e1f2c3b505fe09
parent555740dd9629ccc4237a66abe48b078c9874eaea (diff)
downloadprosody-8756adf72bad6edbda41747267e74a8e04332916.tar.gz
prosody-8756adf72bad6edbda41747267e74a8e04332916.zip
util.prosodyctl.check: Highlight inconsistency of AAAA records and use_ipv6=false
-rw-r--r--util/prosodyctl/check.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua
index 4a93d91c..29cbbde9 100644
--- a/util/prosodyctl/check.lua
+++ b/util/prosodyctl/check.lua
@@ -659,6 +659,10 @@ local function check(arg)
if host_ok_v6 and not v6_supported then
print(" Host "..target_host.." has AAAA records, but your version of LuaSocket does not support IPv6.");
print(" Please see https://prosody.im/doc/ipv6 for more information.");
+ elseif host_ok_v6 and not use_ipv6 then
+ print(" Host "..target_host.." has AAAA records, but IPv6 is disabled.");
+ -- TODO Tell them to drop the AAAA records or enable IPv6?
+ print(" Please see https://prosody.im/doc/ipv6 for more information.");
end
end
if not all_targets_ok then