util/prosodyctl/check.lua
changeset 11927 bd0440c12842
parent 11837 bd86ab8122d9
child 11928 53e68227c2c0
equal deleted inserted replaced
11926:28f5c8061dad 11927: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