From fcacfafb986f2626c3d10279e4cd56fa6f674754 Mon Sep 17 00:00:00 2001 From: cora32 Date: Sun, 22 Mar 2015 14:05:58 +0300 Subject: [PATCH] Added Curl error 18 message. --- Connector.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Connector.cpp b/Connector.cpp index f81fc7f..b624985 100644 --- a/Connector.cpp +++ b/Connector.cpp @@ -325,11 +325,11 @@ int Connector::nConnect(const char* ip, const int port, std::string *buffer, return -2; } else if (res == 13) { - stt->doEmitionFoundData("Unknown ftp: (" + QString::number(res) + ") " + + stt->doEmitionFoundData("Unknown ftp. (" + QString::number(res) + ") " + QString(ip) + ":" + QString::number(port)); return -2; } else if (res == 8) { - stt->doEmitionFoundData("Strange ftp reply: (" + + stt->doEmitionFoundData("Strange ftp repl. (" + QString::number(res) + ") " + QString(ip) + ":" + QString::number(port)); return -2; @@ -340,6 +340,12 @@ int Connector::nConnect(const char* ip, const int port, std::string *buffer, ":" + QString::number(port)); 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) + ") " + QString(ip) + ":" + QString::number(port)); }