Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 43d5e24

Browse files
committed
fix: Allow LAN hosts from 192.168
1 parent 272a810 commit 43d5e24

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

client/src/main/java/client.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6396,12 +6396,15 @@ protected void load() {
63966396
@Pc(34) boolean good = this.frame != null;
63976397
@Pc(38) String host = this.getHost();
63986398
if (host.endsWith("2004scape.org")) {
6399+
// intended domain for players
63996400
good = true;
64006401
}
6401-
if (host.endsWith("localhost")) {
6402+
if (host.endsWith("localhost") || host.endsWith("127.0.0.1")) {
6403+
// allow localhost
64026404
good = true;
64036405
}
6404-
if (host.endsWith("127.0.0.1")) {
6406+
if (host.startsWith("192.168.")) {
6407+
// allow lan
64056408
good = true;
64066409
}
64076410

0 commit comments

Comments
 (0)