From 40ca2839e05b2de6debce45b6002fa0090154cd8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 20 Nov 2021 17:04:15 +0100 Subject: util.prosodyctl.check: Take IPv6 support in LuaSocket into account Shouldn't really matter these days, but portmanager checks this way. --- util/prosodyctl/check.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/prosodyctl') diff --git a/util/prosodyctl/check.lua b/util/prosodyctl/check.lua index d184fba1..73f3ced6 100644 --- a/util/prosodyctl/check.lua +++ b/util/prosodyctl/check.lua @@ -590,7 +590,7 @@ local function check(arg) end local use_ipv4 = configmanager.get("*", "use_ipv4") ~= false; - local use_ipv6 = configmanager.get("*", "use_ipv6") ~= false; + local use_ipv6 = v6_supported and 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."); -- cgit v1.2.3