mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-03 03:47:55 +08:00
【fix】bug
This commit is contained in:
parent
8cc3b4858a
commit
c2c350a28a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user