mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 13:27: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 {
|
public void channelActive(ChannelHandlerContext ctx) throws Exception {
|
||||||
Channel channel = ctx.channel();
|
Channel channel = ctx.channel();
|
||||||
if (channel instanceof NioSocketChannel) {
|
if (channel instanceof NioSocketChannel) {
|
||||||
System.out.println("socks 这是一个TCP通道");
|
log.info("socks 这是一个TCP通道");
|
||||||
} else if (channel instanceof NioDatagramChannel) {
|
} else if (channel instanceof NioDatagramChannel) {
|
||||||
System.out.println("socks 这是一个UDP通道");
|
log.info("socks 这是一个UDP通道");
|
||||||
} else {
|
} else {
|
||||||
System.out.println("socks 未知类型的通道");
|
log.info("socks 未知类型的通道");
|
||||||
}
|
}
|
||||||
String visitorId = UUID.randomUUID().toString();
|
String visitorId = UUID.randomUUID().toString();
|
||||||
ChannelAttributeKeyUtils.buildVisitorId(channel, visitorId);
|
ChannelAttributeKeyUtils.buildVisitorId(channel, visitorId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user