Client: C++ Lib
Patch: Michal Gazda
AI_ADDRCONFIG keeps Windows from making local connections
when no NICs are present.
error = getaddrinfo(host_.c_str(), port, &hints, &res0);
+#ifdef _WIN32\r
+ if (error == WSANO_DATA) {\r
+ hints.ai_flags &= ~AI_ADDRCONFIG;\r
+ error = getaddrinfo(host_.c_str(), port, &hints, &res0);\r
+ }\r
+#endif\r
+\r
if (error) {
string errStr = "TSocket::open() getaddrinfo() " + getSocketInfo() + string(THRIFT_GAI_STRERROR(error));
GlobalOutput(errStr.c_str());