|
25 | 25 | import io.netty.channel.ChannelOption;
|
26 | 26 | import io.netty.channel.ChannelPipeline;
|
27 | 27 | import io.netty.channel.EventLoopGroup;
|
28 |
| -import io.netty.channel.epoll.EpollEventLoopGroup; |
29 | 28 | import io.netty.channel.group.ChannelGroup;
|
30 | 29 | import io.netty.channel.group.ChannelGroupFuture;
|
31 | 30 | import io.netty.channel.group.DefaultChannelGroup;
|
32 |
| -import io.netty.channel.kqueue.KQueueEventLoopGroup; |
33 | 31 | import io.netty.channel.nio.NioEventLoopGroup;
|
34 | 32 | import io.netty.handler.codec.http.HttpClientCodec;
|
35 | 33 | import io.netty.handler.codec.http.HttpContentDecompressor;
|
|
44 | 42 | import io.netty.handler.proxy.Socks5ProxyHandler;
|
45 | 43 | import io.netty.handler.ssl.SslHandler;
|
46 | 44 | import io.netty.handler.stream.ChunkedWriteHandler;
|
47 |
| -import io.netty.incubator.channel.uring.IOUringEventLoopGroup; |
48 | 45 | import io.netty.resolver.NameResolver;
|
49 | 46 | import io.netty.util.Timer;
|
50 | 47 | import io.netty.util.concurrent.DefaultThreadFactory;
|
@@ -116,7 +113,7 @@ public class ChannelManager {
|
116 | 113 | private boolean isInstanceof(Object object, String name) {
|
117 | 114 | final Class<?> clazz;
|
118 | 115 | try {
|
119 |
| - clazz = Class.forName(name, false, null); |
| 116 | + clazz = Class.forName(name, false, this.getClass().getClassLoader()); |
120 | 117 | } catch (ClassNotFoundException ignored) {
|
121 | 118 | return false;
|
122 | 119 | }
|
|
0 commit comments