Skip to content

Commit

Permalink
Update DownloadSource.CHINA
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Apr 27, 2024
1 parent 17056c0 commit 37052e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public enum DownloadSource {

MOHIST("https://maven.mohistmc.com/"),
CHINA("http://s1.devicloud.cn:25119/"),
CHINA("https://libraries.mohistmc.cn:25119/releases/"),
GITHUB("https://mohistmc.github.io/maven/");

public static final DownloadSource defaultSource = Message.isCN() ? CHINA : MOHIST;
Expand All @@ -26,7 +26,7 @@ public static DownloadSource get() {
String ds = MohistConfigUtil.sMohist("libraries_downloadsource", defaultSource.name());
for (DownloadSource me : DownloadSource.values()) {
if (me.name().equalsIgnoreCase(ds)) {
if (isDown(me.url) != 200) return GITHUB;
if (isDown(me.url.replace("releases/", "")) != 200) return GITHUB;
return me;
}
}
Expand Down

0 comments on commit 37052e7

Please sign in to comment.