TCPShield / RealIP

The Spigot, Bungee and Velocity plugin that parses client IP addresses passed from the TCPShield network.
https://tcpshield.com
MIT License
145 stars 52 forks source link

`getForcedHost` broken with TCPShield #76

Open Sir-Will opened 2 years ago

Sir-Will commented 2 years ago

Using the following function in bungeecord AbstractReconnectHandler.getForcedHost(connection); always returns the hub and not the actual forced host.

Example:

@EventHandler
public void onProxyPing(ProxyPingEvent event) {
        PendingConnection connection = event.getConnection();
        ServerInfo forcedHost = AbstractReconnectHandler.getForcedHost(connection);
}