diff --git a/getaddrinfo.cpp b/getaddrinfo.cpp index 6caa6e663382be94bd9236e3356fa119b838de0c..7882e11c2c9c76ea32cf03df4cd0e0e37ec26181 100644 --- a/getaddrinfo.cpp +++ b/getaddrinfo.cpp @@ -346,7 +346,7 @@ int shouldBlockRequest(const char* hostname, int uid){ if (connect(sock, (struct sockaddr *)&server, len) < 0) { LOG(DEBUG) << "Socket: connect failed. Error"; close(sock); - return -1; + return 0; } LOG(DEBUG) << "Socket: Connected";