|
|
@ -631,8 +631,8 @@ bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest |
|
|
|
|
|
|
|
|
|
|
|
SplitHostPort(std::string(pszDest), port, strDest); |
|
|
|
SplitHostPort(std::string(pszDest), port, strDest); |
|
|
|
|
|
|
|
|
|
|
|
proxyType nameProxy; |
|
|
|
proxyType proxy; |
|
|
|
GetNameProxy(nameProxy); |
|
|
|
GetNameProxy(proxy); |
|
|
|
|
|
|
|
|
|
|
|
std::vector<CService> addrResolved; |
|
|
|
std::vector<CService> addrResolved; |
|
|
|
if (Lookup(strDest.c_str(), addrResolved, port, fNameLookup && !HaveNameProxy(), 256)) { |
|
|
|
if (Lookup(strDest.c_str(), addrResolved, port, fNameLookup && !HaveNameProxy(), 256)) { |
|
|
@ -646,7 +646,7 @@ bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest |
|
|
|
|
|
|
|
|
|
|
|
if (!HaveNameProxy()) |
|
|
|
if (!HaveNameProxy()) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
return ConnectThroughProxy(nameProxy, strDest, port, hSocketRet, nTimeout, outProxyConnectionFailed); |
|
|
|
return ConnectThroughProxy(proxy, strDest, port, hSocketRet, nTimeout, outProxyConnectionFailed); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool LookupSubNet(const char* pszName, CSubNet& ret) |
|
|
|
bool LookupSubNet(const char* pszName, CSubNet& ret) |
|
|
|