From 5311a6e0b84b5052b2a714bc106c1ccbced4d4fc Mon Sep 17 00:00:00 2001 From: Tanguy Date: Wed, 18 May 2022 08:51:45 +0200 Subject: [PATCH] TLS1.2 by default (#110) closes #107 --- websock/http/client.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websock/http/client.nim b/websock/http/client.nim index 0811789..88cb565 100644 --- a/websock/http/client.nim +++ b/websock/http/client.nim @@ -125,7 +125,7 @@ proc connect*( address: TransportAddress, version = HttpVersion11, tlsFlags: set[TLSFlags] = {}, - tlsMinVersion = TLSVersion.TLS11, + tlsMinVersion = TLSVersion.TLS12, tlsMaxVersion = TLSVersion.TLS12, hostName = ""): Future[T] {.async.} = @@ -167,7 +167,7 @@ proc connect*( host: string, version = HttpVersion11, tlsFlags: set[TLSFlags] = {}, - tlsMinVersion = TLSVersion.TLS11, + tlsMinVersion = TLSVersion.TLS12, tlsMaxVersion = TLSVersion.TLS12, hostName = ""): Future[T] {.async, raises: [Defect, HttpError].} =