session: use temp session base
This commit is contained in:
@@ -65,7 +65,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_BASE = /*"https://api.openosrs.com*/ "https://api.runelitepl.us";
|
private static final String OPENOSRS_BASE = /*"https://api.openosrs.com*/ "https://api.runelitepl.us";
|
||||||
private static final String OPENOSRS_SESSION = "https://session.openosrs.com";
|
private static final String OPENOSRS_SESSION = "http://198.245.49.61:8080/session";
|
||||||
private static final String MAVEN_METADATA = "http://repo.runelite.net/net/runelite/runelite-parent/maven-metadata.xml";
|
private static final String MAVEN_METADATA = "http://repo.runelite.net/net/runelite/runelite-parent/maven-metadata.xml";
|
||||||
|
|
||||||
private static final Properties properties = new Properties();
|
private static final Properties properties = new Properties();
|
||||||
|
|||||||
@@ -37,7 +37,9 @@ class SessionClient
|
|||||||
{
|
{
|
||||||
Observable<UUID> openSession()
|
Observable<UUID> openSession()
|
||||||
{
|
{
|
||||||
final HttpUrl url = RuneLiteAPI.getSessionBase();
|
final HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
|
||||||
|
.addPathSegment("new")
|
||||||
|
.build();
|
||||||
|
|
||||||
return Observable.fromCallable(() ->
|
return Observable.fromCallable(() ->
|
||||||
{
|
{
|
||||||
@@ -56,7 +58,7 @@ class SessionClient
|
|||||||
{
|
{
|
||||||
final HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
|
final HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
|
||||||
.addPathSegment("ping")
|
.addPathSegment("ping")
|
||||||
.addQueryParameter("session", uuid.toString())
|
.addQueryParameter("uuid", uuid.toString())
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
return Completable.fromAction(() ->
|
return Completable.fromAction(() ->
|
||||||
|
|||||||
Reference in New Issue
Block a user