This repository was archived by the owner on Oct 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ def initialize_advanced_options
35
35
HTTP_OPTION_MAX_CONCURRENCY ,
36
36
HTTP_OPTION_CLIENT_TIMEOUT ,
37
37
HTTP_OPTION_USER_AGENT ,
38
- HTTP_OPTION_FOLLOW_REDIRECT
38
+ HTTP_OPTION_FOLLOW_REDIRECT ,
39
+ HTTP_OPTION_PEER_VERIFICATION
39
40
] )
40
41
41
42
set_option_value ( 'user_agent' , random_user_agent )
Original file line number Diff line number Diff line change @@ -58,6 +58,13 @@ module HttpOptions
58
58
default : true
59
59
)
60
60
61
+ HTTP_OPTION_PEER_VERIFICATION = BooleanOption . new (
62
+ name : 'verify_peer' ,
63
+ desc : 'Enable peer verification when using HTTPS' ,
64
+ required : true ,
65
+ default : true
66
+ )
67
+
61
68
HTTP_OPTION_MAX_CONCURRENCY = IntegerOption . new (
62
69
name : 'max_http_concurrency' ,
63
70
desc : 'Max number of HTTP requests that can be made in ' \
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ def advanced_typhoeus_options
8
8
proxy : datastore [ 'proxy' ] ,
9
9
proxyuserpwd : datastore [ 'proxy_auth_creds' ] ,
10
10
ssl_verifyhost : normalized_option_value ( 'verify_host' ) ? 2 : 0 ,
11
+ ssl_verifypeer : normalized_option_value ( 'verify_peer' ) ,
11
12
timeout : normalized_option_value ( 'http_client_timeout' )
12
13
}
13
14
end
You can’t perform that action at this time.
0 commit comments