xtea: update urls

This commit is contained in:
ThatGamerBlue
2021-03-17 19:44:29 +00:00
parent 091c46ac23
commit ebffc0983b
2 changed files with 9 additions and 3 deletions

View File

@@ -61,6 +61,7 @@ public class RuneLiteAPI
private static final String STATICBASE = "https://static.runelite.net";
private static final String OPENOSRS_SESSION = "https://session.openosrs.dev";
private static final String OPENOSRS_XTEA = "https://xtea.openosrs.dev";
private static final Properties properties = new Properties();
private static String version;
@@ -165,6 +166,11 @@ public class RuneLiteAPI
return HttpUrl.parse(WSBASE);
}
public static HttpUrl getXteaBase()
{
return HttpUrl.parse(OPENOSRS_XTEA);
}
public static String getVersion()
{
return version;

View File

@@ -53,7 +53,7 @@ public class XteaClient
{
String json = RuneLiteAPI.GSON.toJson(xteaRequest);
HttpUrl url = RuneLiteAPI.getApiBase().newBuilder()
HttpUrl url = RuneLiteAPI.getXteaBase().newBuilder()
.addPathSegment("xtea")
.build();
@@ -92,7 +92,7 @@ public class XteaClient
public List<XteaKey> get() throws IOException
{
HttpUrl url = RuneLiteAPI.getApiBase().newBuilder()
HttpUrl url = RuneLiteAPI.getXteaBase().newBuilder()
.addPathSegment("xtea")
.build();
@@ -115,7 +115,7 @@ public class XteaClient
public XteaKey get(int region) throws IOException
{
HttpUrl url = RuneLiteAPI.getApiBase().newBuilder()
HttpUrl url = RuneLiteAPI.getXteaBase().newBuilder()
.addPathSegment("xtea")
.addPathSegment(Integer.toString(region))
.build();