Fix deprecation warning in net module.
This commit is contained in:
parent
c90df48293
commit
b22305758d
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue