# HG changeset patch # User Kim Alvefur # Date 1625354987 -7200 # Node ID 887d7b15e21bd7e27cd25ef5ae51e062c6df58f1 # Parent c9f46d28ed7e2cc57badae08deb74d5fd86e2f8b util.prosodyctl.check: Warn if both use_ipv4 and use_ipv6 are set to false Why would you do this?! diff -r c9f46d28ed7e -r 887d7b15e21b util/prosodyctl/check.lua --- a/util/prosodyctl/check.lua Sun Jul 04 01:23:35 2021 +0200 +++ b/util/prosodyctl/check.lua Sun Jul 04 01:29:47 2021 +0200 @@ -473,6 +473,12 @@ local use_ipv4 = configmanager.get("*", "use_ipv4") ~= false; local use_ipv6 = configmanager.get("*", "use_ipv6") ~= false; + if not use_ipv4 and not use_ipv6 then + print(" Both IPv6 and IPv4 are disabled, Prosody will not listen on any ports"); + print(" nor be able to connect to any remote servers."); + all_targets_ok = false; + end + for target_host in target_hosts do local host_ok_v4, host_ok_v6; do