From f23691df232fcd7ae92d693a726fa1f053018ce8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 11 Jun 2014 16:08:33 +1000 Subject: [PATCH] Reenable throttle since we only support 1.7+ --- proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java index 24261072..e9849b5f 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java @@ -36,9 +36,8 @@ public class PipelineUtils { if ( BungeeCord.getInstance().getConnectionThrottle().throttle( ( (InetSocketAddress) ch.remoteAddress() ).getAddress() ) ) { - // TODO: Better throttle - we can't throttle this way if we want to maintain 1.7 compat! - // ch.close(); - // return; + ch.close(); + return; } BASE.initChannel( ch );