From afc387ce0d245093706f0034e334e7e9ca359eb2 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 16 May 2013 06:39:29 +1000 Subject: [PATCH] Set local address to listener address, closes #337 (reverse-merged from commit 57793e93f0f940edb3636e18d3117b8fb1667f78) --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 1 - 1 file changed, 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index 08d0a893..19f889f7 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -205,7 +205,6 @@ public final class UserConnection implements ProxiedPlayer .channel( NioSocketChannel.class ) .group( BungeeCord.getInstance().eventLoops ) .handler( initializer ) - .localAddress( getPendingConnection().getListener().getHost() ) .option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) // TODO: Configurable .remoteAddress( target.getAddress() ) .connect().addListener( listener );