Fix legacy handshake with hostnames that include IP addresses (#571)

This commit is contained in:
mdxd44
2021-09-01 18:03:49 +09:00
committed by GitHub
parent 9a15c7e170
commit bfe2358386
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ public class VelocityServerConnection implements MinecraftConnectionAssociation,
.orElseGet(() -> registeredServer.getServerInfo().getAddress())
.getHostString())
.append('\0')
.append(proxyPlayer.getRemoteAddress().getHostString())
.append(proxyPlayer.getRemoteAddress().getAddress().getHostAddress())
.append('\0')
.append(proxyPlayer.getGameProfile().getUndashedId())
.append('\0');