Comparison

util/prosodyctl/check.lua @ 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
parent 11833:bd86ab8122d9
child 11924:53e68227c2c0
comparison
equal deleted inserted replaced
11922:28f5c8061dad 11923:bd0440c12842
588 print(" proxy65_address for "..host.." should be set to a string, unable to perform DNS check"); 588 print(" proxy65_address for "..host.." should be set to a string, unable to perform DNS check");
589 end 589 end
590 end 590 end
591 591
592 local use_ipv4 = configmanager.get("*", "use_ipv4") ~= false; 592 local use_ipv4 = configmanager.get("*", "use_ipv4") ~= false;
593 local use_ipv6 = configmanager.get("*", "use_ipv6") ~= false; 593 local use_ipv6 = v6_supported and configmanager.get("*", "use_ipv6") ~= false;
594 if not use_ipv4 and not use_ipv6 then 594 if not use_ipv4 and not use_ipv6 then
595 print(" Both IPv6 and IPv4 are disabled, Prosody will not listen on any ports"); 595 print(" Both IPv6 and IPv4 are disabled, Prosody will not listen on any ports");
596 print(" nor be able to connect to any remote servers."); 596 print(" nor be able to connect to any remote servers.");
597 all_targets_ok = false; 597 all_targets_ok = false;
598 end 598 end