Skip to content

Commit

Permalink
Update Mojang Auth Server Urls (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
AterAnimAvis authored Feb 27, 2024
1 parent 56748ec commit cf8b013
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -298,7 +299,7 @@ public static List<String> getIps(String host) {
} catch (UnknownHostException e1) {
e1.printStackTrace();
}
return null;
return Collections.emptyList();
}

public static boolean downloadFileEtag(File target, String url) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(", ")) + "]");
}
Expand Down

0 comments on commit cf8b013

Please sign in to comment.