mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 18:35:05 +08:00
【fix】bug
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user