diff --git a/src/main/kotlin/com/github/creeper123123321/viaaas/handler/autoprotocol/ProtocolDetector.kt b/src/main/kotlin/com/github/creeper123123321/viaaas/handler/autoprotocol/ProtocolDetector.kt index 9420a60..bc6a073 100644 --- a/src/main/kotlin/com/github/creeper123123321/viaaas/handler/autoprotocol/ProtocolDetector.kt +++ b/src/main/kotlin/com/github/creeper123123321/viaaas/handler/autoprotocol/ProtocolDetector.kt @@ -31,7 +31,7 @@ object ProtocolDetector { try { val ch: ChannelFuture = Bootstrap() .group(childLoop) - .channel(NioSocketChannel::class.java) + .channelFactory(channelSocketFactory()) .option(ChannelOption.TCP_NODELAY, true) .option(ChannelOption.IP_TOS, 0x18) .handler(object : ChannelInitializer() { @@ -74,4 +74,4 @@ object ProtocolDetector { CompletableFuture.completedFuture(null) } } -} \ No newline at end of file +}