mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
fixup! fix: omit curlopt options if curl is old (#4675)
This commit is contained in:
parent
b5339273d0
commit
5a8aab2c2d
1 changed files with 2 additions and 0 deletions
|
@ -536,8 +536,10 @@ public:
|
||||||
{
|
{
|
||||||
(void)curl_easy_setopt(e, CURLOPT_CAINFO, NULL);
|
(void)curl_easy_setopt(e, CURLOPT_CAINFO, NULL);
|
||||||
(void)curl_easy_setopt(e, CURLOPT_CAPATH, NULL);
|
(void)curl_easy_setopt(e, CURLOPT_CAPATH, NULL);
|
||||||
|
#if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */
|
||||||
(void)curl_easy_setopt(e, CURLOPT_PROXY_SSL_VERIFYHOST, 0L);
|
(void)curl_easy_setopt(e, CURLOPT_PROXY_SSL_VERIFYHOST, 0L);
|
||||||
(void)curl_easy_setopt(e, CURLOPT_PROXY_SSL_VERIFYPEER, 0L);
|
(void)curl_easy_setopt(e, CURLOPT_PROXY_SSL_VERIFYPEER, 0L);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else if (!std::empty(curl_ca_bundle))
|
else if (!std::empty(curl_ca_bundle))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue