File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
lib/ronin/support/network Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -141,3 +141,5 @@ Layout/IndentationConsistency:
141
141
Exclude :
142
142
# BUG: this seems like a bug in rubocop
143
143
- ' lib/ronin/support/network/ssl.rb'
144
+ # BUG: this seems like a bug in rubocop
145
+ - ' lib/ronin/support/network/http.rb'
Original file line number Diff line number Diff line change @@ -370,6 +370,14 @@ def initialize_ssl(ca_bundle: nil,
370
370
version = SSL ::VERSIONS . fetch ( version , version )
371
371
372
372
@http . min_version = @http . max_version = version
373
+ else min_version || max_version
374
+ if min_version
375
+ @http . min_version = SSL ::VERSIONS . fetch ( min_version , min_version )
376
+ end
377
+
378
+ if max_version
379
+ @http . max_version = SSL ::VERSIONS . fetch ( max_version , max_version )
380
+ end
373
381
end
374
382
375
383
@http . min_version = min_version if min_version
You can’t perform that action at this time.
0 commit comments