Set TLSStream default to use TLS1.2 only.

This commit is contained in:
cheatfate 2021-02-10 18:15:59 +02:00 committed by zah
parent 3d74c5cdd2
commit 1789328748
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ proc newTLSClientAsyncStream*(rsource: AsyncStreamReader,
wsource: AsyncStreamWriter,
serverName: string,
bufferSize = SSL_BUFSIZE_BIDI,
minVersion = TLSVersion.TLS11,
minVersion = TLSVersion.TLS12,
maxVersion = TLSVersion.TLS12,
flags: set[TLSFlags] = {}): TLSAsyncStream =
## Create new TLS asynchronous stream for outbound (client) connections