try to fix channel type

This commit is contained in:
creeper123123321 2021-02-16 18:08:32 -03:00 committed by GitHub
parent e14f3eb121
commit e7fc7e9139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<Channel>() {
@ -74,4 +74,4 @@ object ProtocolDetector {
CompletableFuture.completedFuture(null)
}
}
}
}