mirror of
https://github.com/brunoos/luasec.git
synced 2024-09-06 21:04:43 +02:00
Fix call to global 'ssl' where it is not available
This commit is contained in:
parent
8e0e1d2dd3
commit
205284211e
@ -220,7 +220,7 @@ local function connect(hostname, port, flags)
|
||||
flags.mode = "client"
|
||||
flags.verify = flags.verify or "none"
|
||||
flags.protocol = flags.protocol or "tlsv1_2"
|
||||
conn, err = ssl.wrap(sock, flags or {})
|
||||
conn, err = wrap(sock, flags or {})
|
||||
if not conn then
|
||||
sock:close()
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user