mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-07-08 12:24:51 +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>() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user