From dd9e292cd1f5a0360c9b3496a8853df9a5222274 Mon Sep 17 00:00:00 2001 From: cora32 Date: Tue, 28 Apr 2015 19:55:27 +0300 Subject: [PATCH] FTP fail-hit fix. --- Connector.cpp | 3 +-- version | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Connector.cpp b/Connector.cpp index 843af48..c937d45 100644 --- a/Connector.cpp +++ b/Connector.cpp @@ -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; diff --git a/version b/version index 88bf941..441b1d8 100644 --- a/version +++ b/version @@ -1 +1 @@ -24B9C-72B \ No newline at end of file +24B9C-79E \ No newline at end of file