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

View File

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