mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:13:39 +03:00
curl: set CURLOPT_SSL_VERIFYHOST to 0 to disable
This commit is contained in:
parent
8d97bed806
commit
a1be8e7f9b
1 changed files with 1 additions and 1 deletions
|
|
@ -1051,7 +1051,7 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
|
||||||
if(curlinfo->features & CURL_VERSION_SSL) {
|
if(curlinfo->features & CURL_VERSION_SSL) {
|
||||||
if(config->insecure_ok) {
|
if(config->insecure_ok) {
|
||||||
my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1L);
|
my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
|
my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue