Skip to content

Commit

Permalink
default tls paths if ca pats from opts is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Jan 10, 2018
1 parent 2c37486 commit f4218aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/bunny/transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ def prepare_tls_context(opts)
@tls_key = tls_key_from(opts)
@tls_certificate_store = opts[:tls_certificate_store]

@tls_ca_certificates = tls_ca_certificates_paths_from(opts) || default_tls_certificates
@tls_ca_certificates = tls_ca_certificates_paths_from(opts)
@tls_ca_certificates = default_tls_certificates if @tls_ca_certificates.empty?
@verify_peer = as_boolean(opts[:verify_ssl] || opts[:verify_peer] || opts[:verify])

@tls_context = initialize_tls_context(OpenSSL::SSL::SSLContext.new, opts)
Expand Down

0 comments on commit f4218aa

Please sign in to comment.