diff --git a/src/main/java/net/minecraftforge/installer/DownloadUtils.java b/src/main/java/net/minecraftforge/installer/DownloadUtils.java index 125b47e..c7d2b1f 100644 --- a/src/main/java/net/minecraftforge/installer/DownloadUtils.java +++ b/src/main/java/net/minecraftforge/installer/DownloadUtils.java @@ -34,6 +34,7 @@ import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import java.util.Arrays; +import java.util.Collections; import java.util.List; import java.util.function.Predicate; import java.util.stream.Collectors; @@ -298,7 +299,7 @@ public static List getIps(String host) { } catch (UnknownHostException e1) { e1.printStackTrace(); } - return null; + return Collections.emptyList(); } public static boolean downloadFileEtag(File target, String url) { diff --git a/src/main/java/net/minecraftforge/installer/SimpleInstaller.java b/src/main/java/net/minecraftforge/installer/SimpleInstaller.java index 9348b35..138ecda 100644 --- a/src/main/java/net/minecraftforge/installer/SimpleInstaller.java +++ b/src/main/java/net/minecraftforge/installer/SimpleInstaller.java @@ -119,7 +119,7 @@ public static void main(String[] args) throws IOException, URISyntaxException "libraries.minecraft.net", "launchermeta.mojang.com", "piston-meta.mojang.com", - "authserver.mojang.com", + "sessionserver.mojang.com", }) { monitor.message("Host: " + host + " [" + DownloadUtils.getIps(host).stream().collect(Collectors.joining(", ")) + "]"); }