Fix legacy handshake with hostnames that include IP addresses (#571)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Velocity
|
# Velocity
|
||||||
|
|
||||||
[](https://ci.velocitypowered.com/job/velocity/)
|
[](https://ci.velocitypowered.com/job/velocity-3.0.0/)
|
||||||
[](https://discord.gg/8cB9Bgf)
|
[](https://discord.gg/8cB9Bgf)
|
||||||
|
|
||||||
A Minecraft server proxy with unparalleled server support, scalability,
|
A Minecraft server proxy with unparalleled server support, scalability,
|
||||||
|
@@ -122,7 +122,7 @@ public class VelocityServerConnection implements MinecraftConnectionAssociation,
|
|||||||
.orElseGet(() -> registeredServer.getServerInfo().getAddress())
|
.orElseGet(() -> registeredServer.getServerInfo().getAddress())
|
||||||
.getHostString())
|
.getHostString())
|
||||||
.append('\0')
|
.append('\0')
|
||||||
.append(proxyPlayer.getRemoteAddress().getHostString())
|
.append(proxyPlayer.getRemoteAddress().getAddress().getHostAddress())
|
||||||
.append('\0')
|
.append('\0')
|
||||||
.append(proxyPlayer.getGameProfile().getUndashedId())
|
.append(proxyPlayer.getGameProfile().getUndashedId())
|
||||||
.append('\0');
|
.append('\0');
|
||||||
|
Reference in New Issue
Block a user