diff --git a/zfblast.nimble b/zfblast.nimble index 3e7328d..6390c87 100755 --- a/zfblast.nimble +++ b/zfblast.nimble @@ -1,11 +1,11 @@ # Package -version = "0.4.4" +version = "0.4.5" author = "Amru Rosyada" description = "High performance http server (https://tools.ietf.org/html/rfc2616) with persistent connection for nim language" license = "BSD" #srcDir = "src" # Deps -requires "nim >= 1.4.0" +requires "nim >= 2.0.0" requires "uri3 >= 0.1.5" requires "sha1" diff --git a/zfblast/server.nim b/zfblast/server.nim index 6a14402..155e962 100755 --- a/zfblast/server.nim +++ b/zfblast/server.nim @@ -642,15 +642,6 @@ when WITH_SSL: var client = await self.sslServer.accept() let (host, port) = self.sslServer.getLocalAddr() - var verifyMode = SslCVerifyMode.CVerifyNone - if self.sslSettings.verify: - verifyMode = SslCVerifyMode.CVerifyPeer - - let sslContext = newContext( - verifyMode = verifyMode, - certFile = self.sslSettings.certFile, - keyFile = self.sslSettings.keyFile) - wrapConnectedSocket(sslContext, client, SslHandshakeType.handshakeAsServer, &"{host}:{port}")