UltimMC / Launcher

Offline Minecraft launcher.
Other
1.4k stars 152 forks source link

Small fix for IPV6 only + DDNS Server #376

Closed BigBoyPro closed 2 months ago

BigBoyPro commented 3 months ago

Hello, My ISP only lets me use IPV6 for my server with my friends and i wanted to setup a DDNS hostname so i can update the IPV6 address seamlessly for my friends, but since the DDNS is always both an IPV4 and an IPV6 record and never IPV6 only i have to use the -Djava.net.preferIPv6Addresses=true Java argument since Minecraft always defaults to the IPV4 address (which is blocked) without it.

But then the Launcher doesn't work because of the use of localhost (that defaults to ::1 in IPV6) instead of 127.0.0.1 in the launcher/minecraft/auth/providers/LocalAuthProvider.h used for the authlib injector's authentication server.

Fixed the two line of code and rebuilt the project to test and now it works perfectly, hope this will end up in an update! Thank you.