diff --git a/src/main/java/net/runelite/client/ClientLoader.java b/src/main/java/net/runelite/client/ClientLoader.java index 1ec22dcd36..a1dca57556 100644 --- a/src/main/java/net/runelite/client/ClientLoader.java +++ b/src/main/java/net/runelite/client/ClientLoader.java @@ -9,6 +9,7 @@ import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; +import java.net.URLConnection; import java.util.List; import net.runelite.launcher.ArtifactResolver; import net.runelite.launcher.Launcher; @@ -19,7 +20,7 @@ import org.eclipse.aether.resolution.DependencyResolutionException; public class ClientLoader { - private static final String CLIENT_ARTIFACT_URL = "http://192.168.1.2/rs/client.json"; + private static final String CLIENT_ARTIFACT_URL = "https://static.runelite.net/client.json"; public Applet load() throws MalformedURLException, ClassNotFoundException, IOException, InstantiationException, IllegalAccessException, DependencyResolutionException { @@ -46,7 +47,9 @@ public class ClientLoader private static Artifact getClientArtifact() throws MalformedURLException, IOException { URL u = new URL(CLIENT_ARTIFACT_URL); - try (InputStream i = u.openStream()) + URLConnection conn = u.openConnection(); + conn.setRequestProperty("User-Agent", "Mozilla/5.0"); + try (InputStream i = conn.getInputStream()) { Gson g = new Gson(); return g.fromJson(new InputStreamReader(i), DefaultArtifact.class); diff --git a/src/main/java/net/runelite/client/ConfigLoader.java b/src/main/java/net/runelite/client/ConfigLoader.java index 9af73b845a..a9f831c3da 100644 --- a/src/main/java/net/runelite/client/ConfigLoader.java +++ b/src/main/java/net/runelite/client/ConfigLoader.java @@ -26,8 +26,7 @@ public class ConfigLoader { try { - configURL = new URL("http://192.168.1.2/rs/jav_config.ws"); - //configURL = new URL("http://oldschool1.runescape.com/jav_config.ws"); // https redirects us to rs3 + configURL = new URL("http://oldschool.runescape.com/jav_config.ws"); // https redirects us to rs3 } catch (MalformedURLException ex) {