Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
Closes #124
Browse files Browse the repository at this point in the history
  • Loading branch information
//de committed Mar 22, 2015
1 parent 809d60d commit 5e7a124
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/reel/server/https.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ def initialize(host, port, options={}, &callback)

# if verify_mode isn't explicitly set, verify peers if we've
# been provided CA information that would enable us to do so
ssl_context.verify_mode = case
when options.include?(:verify_mode)
ssl_context.verify_mode = if options.include?(:verify_mode)
options[:verify_mode]
when options.include?(:ca_file)
elsif options.include?(:ca_file)
OpenSSL::SSL::VERIFY_PEER
when options.include?(:ca_path)
elsif options.include?(:ca_path)
OpenSSL::SSL::VERIFY_PEER
else
OpenSSL::SSL::VERIFY_NONE
Expand Down

0 comments on commit 5e7a124

Please sign in to comment.