From eff51d65119a97073c961eab5feed14821e5fdd3 Mon Sep 17 00:00:00 2001 From: BigBoyPro Date: Fri, 16 Aug 2024 22:53:27 +0200 Subject: [PATCH] For the authlib injector authentification server: i changed localhost to 127.0.0.1 to accomodate people who want to use the -Djava.net.preferIPv6Addresses=true Java argument to play on IPV6 in priority because localhost defaults to ::1 in IPV6 mode and crashes the game on launch --- launcher/minecraft/auth/providers/LocalAuthProvider.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/minecraft/auth/providers/LocalAuthProvider.h b/launcher/minecraft/auth/providers/LocalAuthProvider.h index 6618ba8dae..b6a6f7d24e 100644 --- a/launcher/minecraft/auth/providers/LocalAuthProvider.h +++ b/launcher/minecraft/auth/providers/LocalAuthProvider.h @@ -31,12 +31,12 @@ class LocalAuthProvider : public BaseAuthProvider QString injectorEndpoint() { - return ((QString)"http://localhost:%1").arg(m_authServer->port()); + return ((QString)"http://127.0.0.1:%1").arg(m_authServer->port()); }; QString authEndpoint() { - return ((QString) "http://localhost:%1/auth/").arg(m_authServer->port()); + return ((QString) "http://127.0.0.1:%1/auth/").arg(m_authServer->port()); }; virtual bool useYggdrasil()