master
fengfei 7 years ago
commit b398ec123d
  1. 2
      pom.xml
  2. 2
      proxy-client/src/main/java/org/fengfei/lanproxy/client/handlers/ClientChannelHandler.java

@ -65,4 +65,4 @@
</plugin>
</plugins>
</build>
</project>
</project>

@ -106,6 +106,7 @@ public class ClientChannelHandler extends SimpleChannelInboundHandler<ProxyMessa
logger.debug("connect realserver success, {}", realServerChannel);
ClientChannelMannager.setRealServerChannelReadability(realServerChannel, false, true);
// 获取连接
ClientChannelMannager.borrowProxyChanel(proxyBootstrap, new ProxyChannelBorrowListener() {
@ -124,7 +125,6 @@ public class ClientChannelHandler extends SimpleChannelInboundHandler<ProxyMessa
ClientChannelMannager.setRealServerChannelReadability(realServerChannel, true, true);
ClientChannelMannager.addRealServerChannel(userId, realServerChannel);
ClientChannelMannager.setRealServerChannelUserId(realServerChannel, userId);
}
@Override

Loading…
Cancel
Save