RealIP icon indicating copy to clipboard operation
RealIP copied to clipboard

`getForcedHost` broken with TCPShield

Open Sir-Will opened this issue 3 years ago • 0 comments

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);
}

Sir-Will avatar Jan 28 '22 19:01 Sir-Will