mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-07-05 11:54:42 +02:00
try to fix channel type
This commit is contained in:
parent
e14f3eb121
commit
e7fc7e9139
|
@ -31,7 +31,7 @@ object ProtocolDetector {
|
||||||
try {
|
try {
|
||||||
val ch: ChannelFuture = Bootstrap()
|
val ch: ChannelFuture = Bootstrap()
|
||||||
.group(childLoop)
|
.group(childLoop)
|
||||||
.channel(NioSocketChannel::class.java)
|
.channelFactory(channelSocketFactory())
|
||||||
.option(ChannelOption.TCP_NODELAY, true)
|
.option(ChannelOption.TCP_NODELAY, true)
|
||||||
.option(ChannelOption.IP_TOS, 0x18)
|
.option(ChannelOption.IP_TOS, 0x18)
|
||||||
.handler(object : ChannelInitializer<Channel>() {
|
.handler(object : ChannelInitializer<Channel>() {
|
||||||
|
@ -74,4 +74,4 @@ object ProtocolDetector {
|
||||||
CompletableFuture.completedFuture(null)
|
CompletableFuture.completedFuture(null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user