From 5d73f2e18222cb505928bb5de4f43e8dddb0307e Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Tue, 9 Jun 2020 14:29:33 -0500 Subject: [PATCH] Wtf --- src/main/kotlin/mdnet/base/Netty.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/mdnet/base/Netty.kt b/src/main/kotlin/mdnet/base/Netty.kt index bb2d969..b9bccd6 100644 --- a/src/main/kotlin/mdnet/base/Netty.kt +++ b/src/main/kotlin/mdnet/base/Netty.kt @@ -104,7 +104,7 @@ class Netty(private val tls: ServerSettings.TlsCert, private val clientSettings: val (mainCert, chainCert) = getX509Certs(tls.certificate) val sslContext = SslContextBuilder .forServer(getPrivateKey(tls.privateKey), mainCert, chainCert) - .protocols("TLSv1.3", "TLSv.1.2", "TLSv.1.1", "TLSv.1.0") + .protocols("TLSv1.3", "TLSv1.2", "TLSv1.1", "TLSv1.0") .build() val bootstrap = ServerBootstrap() @@ -112,12 +112,12 @@ class Netty(private val tls: ServerSettings.TlsCert, private val clientSettings: .channelFactory(ChannelFactory { NioServerSocketChannel() }) .childHandler(object : ChannelInitializer() { public override fun initChannel(ch: SocketChannel) { - ch.pipeline().addLast("ssl", OptionalSslHandler(sslContext)) - ch.pipeline().addLast("limiter", limiter) ch.pipeline().addLast("codec", HttpServerCodec()) + ch.pipeline().addLast("limiter", limiter) ch.pipeline().addLast("aggregator", HttpObjectAggregator(65536)) + ch.pipeline().addLast("burstLimiter", burstLimiter) ch.pipeline().addLast("streamer", ChunkedWriteHandler()) ch.pipeline().addLast("handler", Http4kChannelHandler(httpHandler))