| 756 | } |
| 757 | |
| 758 | bool IsProxy(const CNetAddr &addr) { |
| 759 | LOCK(g_proxyinfo_mutex); |
| 760 | for (int i = 0; i < NET_MAX; i++) { |
| 761 | if (addr == static_cast<CNetAddr>(proxyInfo[i].proxy)) |
| 762 | return true; |
| 763 | } |
| 764 | return false; |
| 765 | } |
| 766 | |
| 767 | /** |
| 768 | * Generate unique credentials for Tor stream isolation. Tor will create |