From 36ea27454dfe2668b4d45eb97e85182818499776 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 8 Feb 2014 09:39:45 +1100 Subject: [PATCH] Disable selector rebuild - closes #851 --- proxy/src/main/java/net/md_5/bungee/BungeeCord.java | 2 ++ 1 file changed, 2 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 f038275a..06308c76 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -186,6 +186,8 @@ public class BungeeCord extends ProxyServer @Override public void start() throws Exception { + System.setProperty( "java.net.preferIPv4Stack", "true" ); // Minecraft does not support IPv6 + System.setProperty( "io.netty.selectorAutoRebuildThreshold", "0" ); // Seems to cause Bungee to stop accepting connections ResourceLeakDetector.setEnabled( false ); // Eats performance File moduleDirectory = new File( "modules" );