UDP + Java + IPV6 != Friends

This commit is contained in:
md_5 2013-09-30 17:58:02 +10:00
parent a0d94282f6
commit 80001aa1f0
3 changed files with 2 additions and 8 deletions

View File

@ -7,7 +7,6 @@ import java.util.List;
import java.util.concurrent.TimeUnit;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
import joptsimple.OptionSpec;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.command.ConsoleCommandSender;
@ -60,6 +59,8 @@ public class Bootstrap
}
}
System.setProperty( "java.net.preferIPv4Stack", "true" );
BungeeCord bungee = new BungeeCord();
ProxyServer.setInstance( bungee );
bungee.getLogger().info( "Enabled BungeeCord version " + bungee.getVersion() );

View File

@ -44,12 +44,6 @@ public class QueryHandler extends SimpleChannelInboundHandler<DatagramPacket>
buf.writeByte( 0x00 );
}
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception
{
super.channelActive( ctx ); //To change body of generated methods, choose Tools | Templates.
}
@Override
protected void channelRead0(ChannelHandlerContext ctx, DatagramPacket msg) throws Exception
{

View File

@ -1,7 +1,6 @@
package net.md_5.bungee.query;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.socket.nio.NioDatagramChannel;