#2599: Remove connection throttle if proxy protocol in use

This commit is contained in:
md_5 2019-02-03 08:26:03 +11:00
parent 0dd538f9ff
commit 1a06ebeee0

View File

@ -306,6 +306,12 @@ public class BungeeCord extends ProxyServer
if ( info.isProxyProtocol() )
{
getLogger().log( Level.WARNING, "Using PROXY protocol for listener {0}, please ensure this listener is adequately firewalled.", info.getHost() );
if ( connectionThrottle != null )
{
connectionThrottle = null;
getLogger().log( Level.WARNING, "Since PROXY protocol is in use, internel connection throttle has been disabled." );
}
}
ChannelFutureListener listener = new ChannelFutureListener()