util/prosodyctl/check.lua
branch0.12
changeset 13223 22763b30e458
parent 13221 b264ea91e930
child 13224 56decf85db1d
child 13258 a2ba3f06dcf4
equal deleted inserted replaced
13221:b264ea91e930 13223:22763b30e458
   826 		end
   826 		end
   827 
   827 
   828 		if external_addresses:empty() then
   828 		if external_addresses:empty() then
   829 			print("");
   829 			print("");
   830 			print("   Failed to determine the external addresses of this server. Checks may be inaccurate.");
   830 			print("   Failed to determine the external addresses of this server. Checks may be inaccurate.");
       
   831 			print("   If you know the correct external addresses you can specify them in the config like:")
       
   832 			print("      external_addresses = { \"192.0.2.34\", \"2001:db8::abcd:1234\" }")
   831 			c2s_srv_required, s2s_srv_required = true, true;
   833 			c2s_srv_required, s2s_srv_required = true, true;
   832 		end
   834 		end
   833 
   835 
   834 		local v6_supported = not not socket.tcp6;
   836 		local v6_supported = not not socket.tcp6;
   835 		local use_ipv4 = global:get_option_boolean("use_ipv4", true);
   837 		local use_ipv4 = global:get_option_boolean("use_ipv4", true);
  1101 				print("");
  1103 				print("");
  1102 				print("The addresses we found on this system are:");
  1104 				print("The addresses we found on this system are:");
  1103 				print("");
  1105 				print("");
  1104 				print("    Internal: "..tostring(internal_addresses));
  1106 				print("    Internal: "..tostring(internal_addresses));
  1105 				print("    External: "..tostring(external_addresses));
  1107 				print("    External: "..tostring(external_addresses));
       
  1108 				print("")
       
  1109 				print("If the list of external external addresses is incorrect you can specify correct addresses in the config:")
       
  1110 				print("    external_addresses = { \"192.0.2.34\", \"2001:db8::abcd:1234\" }")
  1106 			end
  1111 			end
  1107 			print("");
  1112 			print("");
  1108 			print("For more information about DNS configuration please see https://prosody.im/doc/dns");
  1113 			print("For more information about DNS configuration please see https://prosody.im/doc/dns");
  1109 			print("");
  1114 			print("");
  1110 			ok = false;
  1115 			ok = false;