Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Commit

Permalink
session: use temp session base
Browse files Browse the repository at this point in the history
  • Loading branch information
Therealnull committed Jan 13, 2020
1 parent 2febfd2 commit f4d136b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class RuneLiteAPI
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_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 Properties properties = new Properties();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class SessionClient
{
Observable<UUID> openSession()
{
final HttpUrl url = RuneLiteAPI.getSessionBase();
final HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
.addPathSegment("new")
.build();

return Observable.fromCallable(() ->
{
Expand All @@ -56,7 +58,7 @@ Completable pingSession(UUID uuid)
{
final HttpUrl url = RuneLiteAPI.getSessionBase().newBuilder()
.addPathSegment("ping")
.addQueryParameter("session", uuid.toString())
.addQueryParameter("uuid", uuid.toString())
.build();

return Completable.fromAction(() ->
Expand Down

0 comments on commit f4d136b

Please sign in to comment.