Fixed compilation of smtp module.
This commit is contained in:
parent
840e5f34ef
commit
05551c40cf
1 changed files with 2 additions and 1 deletions
|
|
@ -81,7 +81,8 @@ proc connect*(address: string, port = 25,
|
|||
result.sock = socket()
|
||||
if ssl:
|
||||
when defined(ssl):
|
||||
result.sock.wrapSocket(verifyMode = CVerifyNone)
|
||||
let ctx = newContext(verifyMode = CVerifyNone)
|
||||
ctx.wrapSocket(result.sock)
|
||||
else:
|
||||
raise newException(ESystem,
|
||||
"SMTP module compiled without SSL support")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue