Commit Graph
2 Commits
Author SHA1 Message Date
Karrz1 16705c7c90 Realm loopback test: with a localAddress the stock pick is either realm address 2026-11-14 12:02:52 +00:00
Karrz1 9c19986d28 Realm: 127.0.0.1 for a local game only when the world server is on this PC
Since 0.1.30 a game on the auth server's own PC always got 127.0.0.1 from the
realm list, so a VPN that was on when the server started could not break the
login. With the auth server on one PC and the world server on another, that
sent the game to a PC with no world server and the login failed.

Now a loopback client gets 127.0.0.1 only when the realm's address or
localAddress is this PC, or when something listens on 127.0.0.1 at the
realm's port (the VPN case: the address is gone but the world server still
listens here). Otherwise the realmlist addresses are used as before 0.1.30.
The port check is kept for a minute per port.
2026-11-14 11:55:25 +00:00