mirror of
https://github.com/GeyserMC/GeyserConnect.git
synced 2025-06-26 14:15:22 +02:00
Revert "Fix issues with hostnames on PS4"
This reverts commit d180ab3795
.
This commit is contained in:
parent
06aa2adca8
commit
c73714c9b4
1 changed files with 2 additions and 7 deletions
|
@ -43,7 +43,6 @@ import org.geysermc.connect.ui.FormID;
|
||||||
import org.geysermc.connect.ui.UIHandler;
|
import org.geysermc.connect.ui.UIHandler;
|
||||||
import org.geysermc.connector.network.session.auth.BedrockClientData;
|
import org.geysermc.connector.network.session.auth.BedrockClientData;
|
||||||
|
|
||||||
import java.net.InetSocketAddress;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -213,13 +212,9 @@ public class Player {
|
||||||
port = currentServer.getPort();
|
port = currentServer.getPort();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create an InetSocketAddress to reduce issues with hostnames for PS4
|
|
||||||
// Thanks Extollite
|
|
||||||
InetSocketAddress socketAddress = new InetSocketAddress(address, port);
|
|
||||||
|
|
||||||
TransferPacket transferPacket = new TransferPacket();
|
TransferPacket transferPacket = new TransferPacket();
|
||||||
transferPacket.setAddress(socketAddress.getAddress().getHostAddress());
|
transferPacket.setAddress(address);
|
||||||
transferPacket.setPort(socketAddress.getPort());
|
transferPacket.setPort(port);
|
||||||
session.sendPacket(transferPacket);
|
session.sendPacket(transferPacket);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue