aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-20 17:04:15 +0100
committerKim Alvefur <zash@zash.se>2021-11-20 17:04:15 +0100
commit40ca2839e05b2de6debce45b6002fa0090154cd8 (patch)
tree5301361a7cfea3f8d9458f8a567676cf7bc2fadd /util/prosodyctl
parent8ac98af8b88e3f2d7f8d91a5dfe568cc2b9b86d2 (diff)
downloadprosody-40ca2839e05b2de6debce45b6002fa0090154cd8.tar.gz
prosody-40ca2839e05b2de6debce45b6002fa0090154cd8.zip
util.prosodyctl.check: Take IPv6 support in LuaSocket into account
Shouldn't really matter these days, but portmanager checks this way.
Diffstat (limited to 'util/prosodyctl')
-rw-r--r--util/prosodyctl/check.lua2
1 files changed, 1 insertions, 1 deletions
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.");