【fix】 bug fix

This commit is contained in:
wujiawei
2025-04-06 22:43:01 +08:00
parent 532d05d4a8
commit 9c5000f995
3 changed files with 5 additions and 6 deletions

View File

@ -22,9 +22,8 @@ public class NettyHttpClientProxyClientRealHandler extends SimpleChannelInboundH
byte[] bytes = nettyByteBuf.getData();
log.debug("bytes.length:{}",bytes.length);
log.debug("接收客户端真实服务数据:{}", new String(bytes));
log.debug("客户端代理客户端,接收目标客户端真实服务数据:{}", new String(bytes));
String visitorId = ChannelAttributeKeyUtils.getVisitorId(ctx.channel());
Integer visitorPort = ChannelAttributeKeyUtils.getVisitorPort(ctx.channel());
String clientId = ChannelAttributeKeyUtils.getClientId(ctx.channel());
// 访客通信通道 上报服务端代理完成
Channel nextChannel = ChannelAttributeKeyUtils.getNextChannel(ctx.channel());
@ -32,7 +31,6 @@ public class NettyHttpClientProxyClientRealHandler extends SimpleChannelInboundH
returnMessage.setType(TcpMessageType.HTTP_REPORT_CLIENT_PROXY_CLIENT_TRANSFER_RESPONSE_);
returnMessage.setVisitorId(visitorId);
returnMessage.setClientId(clientId);
returnMessage.setVisitorPort(visitorPort);
returnMessage.setData(bytes);
nextChannel.writeAndFlush(returnMessage);