diff --git a/SSHAuth.cpp b/SSHAuth.cpp index 10a9ab0..cb73e13 100644 --- a/SSHAuth.cpp +++ b/SSHAuth.cpp @@ -37,8 +37,7 @@ int _sshConnect(const char *user, const char *pass, const char *host, int port) if(res != CURLE_OK) { curl_easy_cleanup(curl); ++ssh; - stt->doEmitionRedFoundData("[SSH]Cannot connect to: " + QString(host) + ":" + QString::number(port)); - return 0; + return -2; } if(sock != -1) { diff --git a/finder.cpp b/finder.cpp index ccaf7d4..93efd2f 100644 --- a/finder.cpp +++ b/finder.cpp @@ -1785,7 +1785,9 @@ int redirectReconnect(char *ip, int port, char *str, Lexems *ls, PathStr *ps, st { ps->flag = -1; ls->flag = -1; - if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + "] Rejecting in _header::redirect [Dead host]."); + if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + + "] Rejecting in _header::redirect [Dead host]."); }; return -2; @@ -1899,7 +1901,9 @@ int redirectReconnect(char *ip, int port, char *str, Lexems *ls, PathStr *ps, st { ps->flag = -1; ls->flag = -1; - if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + "] Rejecting in _header::redirect [Dead host]."); + if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + + "] Rejecting in _header::redirect [Dead host]."); }; return -2; @@ -1964,7 +1968,9 @@ int redirectReconnect(char *ip, int port, char *str, Lexems *ls, PathStr *ps, st { ps->flag = -1; ls->flag = -1; - if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + "] Rejecting in _header::redirect [Dead host]."); + if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + + "] Rejecting in _header::redirect [Dead host]."); }; return -2; } @@ -2018,7 +2024,9 @@ int redirectReconnect(char *ip, int port, char *str, Lexems *ls, PathStr *ps, st { ps->flag = -1; ls->flag = -1; - if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + "] Rejecting in _header::redirect [Dead host]."); + if(gNegDebugMode) stt->doEmitionDebugFoundData("[" + QString(ip) + ":" + QString::number(port) + "" + + "] Rejecting in _header::redirect [Dead host]."); }; return -2; }; @@ -2495,7 +2503,10 @@ int Lexems::_header(char *ip, int port, const char str[], Lexems *l, PathStr *ps while(str1 != NULL); return -2; }; - + if (strstri(str, "