mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 10:25:07 +08:00
【fix】init route ip
This commit is contained in:
@ -26,7 +26,7 @@ public class NettyProxy2RealInboundHandler extends ChannelInboundHandlerAdapter
|
||||
|
||||
@Override
|
||||
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
|
||||
log.info("转发客户端的请求到代理服务器");
|
||||
log.info("本地转发客户端的请求到代理服务器");
|
||||
if (dstChannelFuture.channel().isActive()) {
|
||||
dstChannelFuture.channel().writeAndFlush(msg);
|
||||
} else {
|
||||
|
@ -25,6 +25,7 @@ public class RouteContext {
|
||||
String virtualPort = route.getVirtualPort();
|
||||
String key = virtualIp + ":" + virtualPort + "_" + routeType;
|
||||
if (m.containsKey(key)) {
|
||||
m.put(key, route);
|
||||
return;
|
||||
}
|
||||
// TODO 验证ip、端口、类型
|
||||
|
Reference in New Issue
Block a user