From d0474fab02df40b8f176b510ae3c1621ca5464aa Mon Sep 17 00:00:00 2001 From: cora32 Date: Fri, 3 Apr 2015 21:50:54 +0300 Subject: [PATCH] Connections to dead domain names fixed. --- Connector.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Connector.cpp b/Connector.cpp index e4d00d0..80e8cdf 100644 --- a/Connector.cpp +++ b/Connector.cpp @@ -185,6 +185,7 @@ int Connector::nConnect(const char* ip, const int port, std::string *buffer, Activity += buffer->size(); return buffer->size(); } else { + if (gMode == 1 && res == 6) return - 2; if (res != 28 && res != 6 && res != 7 && @@ -256,7 +257,7 @@ int Connector::_ConnectToPort(char* ip, int port) ++Alive; Lexems lx; lx._filler(port, buffer.c_str(), ip, size, &lx); - }; - + } + else if (size == -2) return -2; return 0; }