Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
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) {
|
||||
handshake.setServerAddress(destAddress.getHostString() + HANDSHAKE_HOSTNAME_TOKEN);
|
||||
} else {
|
||||
handshake.setServerAddress(destAddress.getHostString());
|
||||
handshake.setServerAddress(proxyPlayer.getVirtualHost()
|
||||
.orElseGet(() -> registeredServer.getServerInfo().getAddress())
|
||||
.getHostString());
|
||||
}
|
||||
handshake.setPort(destAddress.getPort());
|
||||
mc.delayedWrite(handshake);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren