FTP fail-hit fix.

This commit is contained in:
cora32 2015-04-28 19:55:27 +03:00
parent 6e1853e0ef
commit dd9e292cd1
2 changed files with 2 additions and 3 deletions

View File

@ -159,7 +159,6 @@ int Connector::nConnect(const char* ip, const int port, std::string *buffer,
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, nWriteCallback);
//curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, buffer);
int proxyPort = std::atoi(gProxyPort);
if (strlen(gProxyIP) != 0 && (proxyPort > 0 && proxyPort < 65535)) {
@ -240,7 +239,7 @@ int Connector::nConnect(const char* ip, const int port, std::string *buffer,
}
else stt->doEmitionRedFoundData("CURL error: (" + QString::number(res) + ") " +
QString(ip) + ":" + QString::number(port));
} else return sz;
};
if (res == 23 && sz > 0) {
return sz;

View File

@ -1 +1 @@
24B9C-72B
24B9C-79E