| 606 | } |
| 607 | |
| 608 | bool SetProxy(enum Network net, const Proxy &addrProxy) { |
| 609 | assert(net >= 0 && net < NET_MAX); |
| 610 | if (!addrProxy.IsValid()) |
| 611 | return false; |
| 612 | LOCK(g_proxyinfo_mutex); |
| 613 | proxyInfo[net] = addrProxy; |
| 614 | return true; |
| 615 | } |
| 616 | |
| 617 | bool GetProxy(enum Network net, Proxy &proxyInfoOut) { |
| 618 | assert(net >= 0 && net < NET_MAX); |
no test coverage detected