Skip to content

Commit

Permalink
Fix ssl_verify usage triggering error, "Either 'ssl_verify_default_ca…
Browse files Browse the repository at this point in the history
…' or 'ssl_verify_ca' must be specified when ssl_verify is true"
  • Loading branch information
driskell committed Sep 1, 2014
1 parent 2256555 commit accb26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/log-courier/server_tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def initialize(options = {})
raise "[LogCourierServer] '#{k}' is required" if @options[k].nil?
end

if @options[:ssl_verify] and (not @options[:ssl_verify_default_ca] && @options[:ssl_verify_ca].nil?)
if @options[:ssl_verify] and (!@options[:ssl_verify_default_ca] && @options[:ssl_verify_ca].nil?)
raise '[LogCourierServer] Either \'ssl_verify_default_ca\' or \'ssl_verify_ca\' must be specified when ssl_verify is true'
end
end
Expand Down

0 comments on commit accb26d

Please sign in to comment.