【fix】客户端渗透客户端编码

This commit is contained in:
wujiawei
2024-09-20 21:57:02 +08:00
parent 238b2906a0
commit b4e2f8ec3c
2 changed files with 3 additions and 2 deletions

View File

@ -31,6 +31,7 @@ public class NettyClientPermeateClientRealHandler extends SimpleChannelInboundHa
String clientId = ChannelAttributeKeyUtils.getClientId(ctx.channel());
// 访客通信通道 上报服务端代理完成
Channel visitorChannel = NettyCommunicationIdContext.getVisitor(visitorId);
Channel nextChannel = ChannelAttributeKeyUtils.getNextChannel(ctx.channel());
NettyProxyMsg returnMessage = new NettyProxyMsg();
returnMessage.setType(MessageType.REPORT_CLIENT_TRANSFER_CLIENT_RESPONSE);
returnMessage.setVisitorId(visitorId);
@ -38,7 +39,7 @@ public class NettyClientPermeateClientRealHandler extends SimpleChannelInboundHa
returnMessage.setVisitorPort(visitorPort);
returnMessage.setData(bytes);
visitorChannel.writeAndFlush(returnMessage);
nextChannel.writeAndFlush(returnMessage);
}