| 579 | } |
| 580 | |
| 581 | bool IsProxy(const CNetAddr &addr) { |
| 582 | LOCK(cs_proxyInfos); |
| 583 | for (int i = 0; i < NET_MAX; i++) { |
| 584 | if (addr == static_cast<CNetAddr>(proxyInfo[i].proxy)) |
| 585 | return true; |
| 586 | } |
| 587 | return false; |
| 588 | } |
| 589 | |
| 590 | bool ConnectThroughProxy(const proxyType &proxy, const std::string& strDest, int port, const SOCKET& hSocket, int nTimeout, bool *outProxyConnectionFailed) |
| 591 | { |