mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 23:41:29 +00:00
Fix deprecation warning in net module.
This commit is contained in:
@@ -1377,5 +1377,7 @@ proc connect*(socket: Socket, address: string, port = Port(0),
|
||||
when defineSsl:
|
||||
if socket.isSSL:
|
||||
socket.fd.setBlocking(true)
|
||||
{.warning[Deprecated]: off.}
|
||||
doAssert socket.handshake()
|
||||
{.warning[Deprecated]: on.}
|
||||
socket.fd.setBlocking(true)
|
||||
|
||||
Reference in New Issue
Block a user