mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05: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(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…
Reference in New Issue
Block a user