Added Curl error 18 message.

This commit is contained in:
cora32 2015-03-22 14:05:58 +03:00
parent 4c8c4c557a
commit 99dc6f8162

View File

@ -325,11 +325,11 @@ int Connector::nConnect(const char* ip, const int port, std::string *buffer,
return -2; return -2;
} }
else if (res == 13) { else if (res == 13) {
stt->doEmitionFoundData("Unknown ftp: (" + QString::number(res) + ") " + stt->doEmitionFoundData("Unknown ftp. (" + QString::number(res) + ") " +
QString(ip) + ":" + QString::number(port)); QString(ip) + ":" + QString::number(port));
return -2; return -2;
} else if (res == 8) { } else if (res == 8) {
stt->doEmitionFoundData("Strange ftp reply: (" + stt->doEmitionFoundData("Strange ftp repl. (" +
QString::number(res) + ") " + QString(ip) + QString::number(res) + ") " + QString(ip) +
":" + QString::number(port)); ":" + QString::number(port));
return -2; return -2;
@ -340,6 +340,12 @@ int Connector::nConnect(const char* ip, const int port, std::string *buffer,
":" + QString::number(port)); ":" + QString::number(port));
return -2; return -2;
} }
else if (res == 18) {
stt->doEmitionFoundData("Inappropriate file size. (" +
QString::number(res) + ") " + QString(ip) +
":" + QString::number(port));
return -2;
}
else stt->doEmitionRedFoundData("CURL error: (" + QString::number(res) + ") " + else stt->doEmitionRedFoundData("CURL error: (" + QString::number(res) + ") " +
QString(ip) + ":" + QString::number(port)); QString(ip) + ":" + QString::number(port));
} }