geforkt von Mirrors/Velocity
Preserve virtual host the player connected to for modern/none forwarding
This makes these modes in-line with legacy forwarding
Dieser Commit ist enthalten in:
Ursprung
ea07c6661a
Commit
effca0da82
@ -173,7 +173,9 @@ public class VelocityServerConnection implements MinecraftConnectionAssociation,
|
|||||||
} else if (proxyPlayer.getConnection().getType() == ConnectionTypes.LEGACY_FORGE) {
|
} else if (proxyPlayer.getConnection().getType() == ConnectionTypes.LEGACY_FORGE) {
|
||||||
handshake.setServerAddress(destAddress.getHostString() + HANDSHAKE_HOSTNAME_TOKEN);
|
handshake.setServerAddress(destAddress.getHostString() + HANDSHAKE_HOSTNAME_TOKEN);
|
||||||
} else {
|
} else {
|
||||||
handshake.setServerAddress(destAddress.getHostString());
|
handshake.setServerAddress(proxyPlayer.getVirtualHost()
|
||||||
|
.orElseGet(() -> registeredServer.getServerInfo().getAddress())
|
||||||
|
.getHostString());
|
||||||
}
|
}
|
||||||
handshake.setPort(destAddress.getPort());
|
handshake.setPort(destAddress.getPort());
|
||||||
mc.delayedWrite(handshake);
|
mc.delayedWrite(handshake);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren