From 1a06ebeee018b19a30b68491150cc91a7cf3e298 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 3 Feb 2019 08:26:03 +1100 Subject: [PATCH] #2599: Remove connection throttle if proxy protocol in use --- proxy/src/main/java/net/md_5/bungee/BungeeCord.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index 3550690b..60382062 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -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()