From 7e1713957cb313b01505777ab5ce9c63d54dfaf0 Mon Sep 17 00:00:00 2001 From: Amru Rosyada Date: Tue, 5 Sep 2023 08:39:51 +0700 Subject: [PATCH] update to nim 2 --- zfblast.nimble | 4 ++-- zfblast/server.nim | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) 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}")