mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
Merge branch 'master' of github.com:Araq/Nimrod
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user