Set local address to listener address, closes #337 (reverse-merged from commit 57793e93f0)

This commit is contained in:
md_5 2013-05-16 06:39:29 +10:00
parent 8a70af5293
commit afc387ce0d

View File

@ -205,7 +205,6 @@ public final class UserConnection implements ProxiedPlayer
.channel( NioSocketChannel.class ) .channel( NioSocketChannel.class )
.group( BungeeCord.getInstance().eventLoops ) .group( BungeeCord.getInstance().eventLoops )
.handler( initializer ) .handler( initializer )
.localAddress( getPendingConnection().getListener().getHost() )
.option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) // TODO: Configurable .option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) // TODO: Configurable
.remoteAddress( target.getAddress() ) .remoteAddress( target.getAddress() )
.connect().addListener( listener ); .connect().addListener( listener );