We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 086e279 commit c20e499Copy full SHA for c20e499
lib/websocket-client-simple/client.rb
@@ -23,10 +23,7 @@ def connect(url, options={})
23
ctx = OpenSSL::SSL::SSLContext.new
24
ctx.ssl_version = options[:ssl_version] if options[:ssl_version]
25
ctx.verify_mode = options[:verify_mode] if options[:verify_mode]
26
- cert_store = options[:cert_store]
27
- unless cert_store
28
- cert_store = OpenSSL::X509::Store.new
29
- end
+ cert_store = options[:cert_store] || OpenSSL::X509::Store.new
30
cert_store.set_default_paths
31
ctx.cert_store = cert_store
32
@socket = ::OpenSSL::SSL::SSLSocket.new(@socket, ctx)
0 commit comments