| 551 | } |
| 552 | |
| 553 | bool IsProxy(const CNetAddr &addr) { |
| 554 | LOCK(cs_proxyInfos); |
| 555 | for (int i = 0; i < NET_MAX; i++) { |
| 556 | if (addr == (CNetAddr)proxyInfo[i].proxy) |
| 557 | return true; |
| 558 | } |
| 559 | return false; |
| 560 | } |
| 561 | |
| 562 | static bool ConnectThroughProxy(const proxyType &proxy, const std::string& strDest, int port, SOCKET& hSocketRet, int nTimeout, bool *outProxyConnectionFailed) |
| 563 | { |