Set CA cert path in Downloader::processDownloadQueue

Forgot to set CURLOPT_CAINFO in 0b455ddedc for curl handles that Downloader::processDownloadQueue creates
This commit is contained in:
Sude 2016-08-30 21:21:52 +03:00
parent 0b455ddedc
commit 24bd3a7c0e

View File

@ -2905,6 +2905,9 @@ void Downloader::processDownloadQueue(Config conf, const unsigned int& tid)
curl_easy_setopt(dlhandle, CURLOPT_LOW_SPEED_TIME, 30);
curl_easy_setopt(dlhandle, CURLOPT_LOW_SPEED_LIMIT, 200);
if (!conf.sCACertPath.empty())
curl_easy_setopt(dlhandle, CURLOPT_CAINFO, conf.sCACertPath.c_str());
xferInfo xferinfo;
xferinfo.tid = tid;
xferinfo.curlhandle = dlhandle;