Proper autoIpConfig address.

This commit is contained in:
MobiusDev
2017-08-05 15:29:01 +00:00
parent 99e5433deb
commit 5d3dc96029
3 changed files with 6 additions and 6 deletions

View File

@ -3080,7 +3080,7 @@ public final class Config
String externalIp = "127.0.0.1";
try
{
final URL autoIp = new URL("http://ipconfig.l2junity.org/");
final URL autoIp = new URL("http://ip1.dynupdate.no-ip.com:8245/");
try (BufferedReader in = new BufferedReader(new InputStreamReader(autoIp.openStream())))
{
externalIp = in.readLine();
@ -3088,7 +3088,7 @@ public final class Config
}
catch (IOException e)
{
LOGGER.info("Network Config: Failed to connect to ipconfig.l2junity.org please check your internet connection using 127.0.0.1!");
LOGGER.log(Level.INFO, "Failed to connect to api.externalip.net please check your internet connection using 127.0.0.1!");
externalIp = "127.0.0.1";
}