| 645 | } |
| 646 | |
| 647 | bool IsProxy(const CNetAddr &addr) { |
| 648 | LOCK(g_proxyinfo_mutex); |
| 649 | for (int i = 0; i < NET_MAX; i++) { |
| 650 | if (addr == static_cast<CNetAddr>(proxyInfo[i].proxy)) |
| 651 | return true; |
| 652 | } |
| 653 | return false; |
| 654 | } |
| 655 | |
| 656 | bool ConnectThroughProxy(const Proxy& proxy, const std::string& strDest, uint16_t port, const Sock& sock, int nTimeout, bool& outProxyConnectionFailed) |
| 657 | { |