Skip to content

Commit

Permalink
Merge pull request #240 from racker/tls_context
Browse files Browse the repository at this point in the history
Tls context
  • Loading branch information
rphillips committed Jun 8, 2012
2 parents a9c05ba + 935603e commit 778ebab
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 778ebab

Please sign in to comment.