Set local address to listener address, closes #337

This commit is contained in:
md_5 2013-05-15 19:05:38 +10:00
parent a48ef137bd
commit 57793e93f0

View File

@ -176,6 +176,7 @@ public final class UserConnection implements ProxiedPlayer
ch.pipeline().get( HandlerBoss.class ).setHandler( new ServerConnector( bungee, UserConnection.this, target ) ); ch.pipeline().get( HandlerBoss.class ).setHandler( new ServerConnector( bungee, UserConnection.this, target ) );
} }
} ) } )
.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( new ChannelFutureListener() .connect().addListener( new ChannelFutureListener()