【fix】log

This commit is contained in:
wujiawei
2025-05-08 10:35:28 +08:00
parent 32c757ef5e
commit 687770e086
3 changed files with 31 additions and 27 deletions

View File

@ -27,12 +27,12 @@ public class NettyServerProxyClientVisitorInboundHandler extends SimpleChannelIn
@Override
public void channelRead0(ChannelHandlerContext ctx, NettyByteBuf nettyByteBuf) throws Exception {
log.info("【socks】转发客户端的请求到代理服务器");
log.info("【socks】转发服务端请求到客户端");
// 结果下发
Channel channel = ctx.channel();
byte[] bytes = nettyByteBuf.getData();
log.debug("bytes.length:{}",bytes.length);
log.debug("客户端代理服务端,socks本地接收请求数据:{}", new String(bytes));
log.debug("服务端代理客户端,socks本地接收请求数据:{}", new String(bytes));
Channel nextChannel = ChannelAttributeKeyUtils.getNextChannel(channel);
if (nextChannel.isActive()) {

View File

@ -36,7 +36,7 @@ public class NettySocksServerProxyClientTransferHandler extends SimpleChannelInb
String clientId = ChannelAttributeKeyUtils.getClientId(ctx.channel());
String visitorId = ChannelAttributeKeyUtils.getVisitorId(ctx.channel());
Channel nextChannel = ChannelAttributeKeyUtils.getNextChannel(ctx.channel());
log.warn("close client permeate client transfer real clientId:{} visitorId:{}", clientId, visitorId);
log.warn("close server proxy client transfer real clientId:{} visitorId:{}", clientId, visitorId);
// 关闭访客
if (nextChannel != null) {