Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lib/luvit/tls.lua: Added code to tls.connect() to allow for context i…
…mport

Allow for reconnections to be made.
  • Loading branch information
mkandrashoff committed Jun 8, 2012
1 parent f951078 commit 50bd2f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/luvit/tls.lua
Expand Up @@ -823,7 +823,12 @@ function connect(...)
end
local socket = options.socket or Socket:new()
local sslcontext = createCredentials(options)
if options.context then
sslcontext = createcredentials(options, options.context)
else
sslcontext = createcredentials(options)
end
socket:connect(options.port, options.host)
Expand Down

0 comments on commit 50bd2f1

Please sign in to comment.