Software /
code /
prosody
Diff
util/prosodyctl/check.lua @ 11925:3e0d03a74285
util.prosodyctl.check: Highlight inconsistency of AAAA records and use_ipv6=false
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 Nov 2021 18:58:09 +0100 |
parent | 11924:53e68227c2c0 |
child | 11940:2d82e4245aa3 |
line wrap: on
line diff
--- a/util/prosodyctl/check.lua Sat Nov 20 17:05:32 2021 +0100 +++ b/util/prosodyctl/check.lua Sat Nov 20 18:58:09 2021 +0100 @@ -659,6 +659,10 @@ 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