【fix】bug

This commit is contained in:
wujiawei 2025-05-06 09:43:39 +08:00
parent 8cc3b4858a
commit c2c350a28a

View File

@ -36,11 +36,11 @@ public class NettySocks5CommandRequestHandler extends SimpleChannelInboundHandle
public void channelActive(ChannelHandlerContext ctx) throws Exception {
Channel channel = ctx.channel();
if (channel instanceof NioSocketChannel) {
System.out.println("socks 这是一个TCP通道");
log.info("socks 这是一个TCP通道");
} else if (channel instanceof NioDatagramChannel) {
System.out.println("socks 这是一个UDP通道");
log.info("socks 这是一个UDP通道");
} else {
System.out.println("socks 未知类型的通道");
log.info("socks 未知类型的通道");
}
String visitorId = UUID.randomUUID().toString();
ChannelAttributeKeyUtils.buildVisitorId(channel, visitorId);