mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
curl: set CURLOPT_SSL_VERIFYHOST to 0 to disable
This commit is contained in:
parent
8d97bed806
commit
a1be8e7f9b
@ -1051,7 +1051,7 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
|
||||
if(curlinfo->features & CURL_VERSION_SSL) {
|
||||
if(config->insecure_ok) {
|
||||
my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||
my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1L);
|
||||
my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||
}
|
||||
else {
|
||||
my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
|
||||
|
Loading…
Reference in New Issue
Block a user