Changeset

11923:bd0440c12842

util.prosodyctl.check: Take IPv6 support in LuaSocket into account Shouldn't really matter these days, but portmanager checks this way.
author Kim Alvefur <zash@zash.se>
date Sat, 20 Nov 2021 17:04:15 +0100
parents 11922:28f5c8061dad
children 11924:53e68227c2c0
files util/prosodyctl/check.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/prosodyctl/check.lua	Fri Nov 19 15:45:01 2021 +0100
+++ b/util/prosodyctl/check.lua	Sat Nov 20 17:04:15 2021 +0100
@@ -590,7 +590,7 @@
 			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.");