Skip to content

Commit

Permalink
fix nil timeout and retries
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpop committed Oct 26, 2016
1 parent 0a042eb commit e1b680e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resources/ssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SSL < Inspec.resource(1)
'tls1.2',
].freeze

attr_reader :host, :port
attr_reader :host, :port, :timeout, :retries

def initialize(opts = {})
@host = opts[:host]
Expand Down Expand Up @@ -71,7 +71,7 @@ def initialize(opts = {})
res = Parallel.map(groups, in_threads: 8) do |proto, e|
[proto, SSLShake.hello(x.resource.host, port: x.resource.port,
protocol: proto, ciphers: e.map(&:cipher),
timeout: @timeout, retries: @retries)]
timeout: x.resource.timeout, retries: x.resource.retries)]
end
Hash[res]
}
Expand Down

0 comments on commit e1b680e

Please sign in to comment.