| 615 | } |
| 616 | |
| 617 | bool GetProxy(enum Network net, Proxy &proxyInfoOut) { |
| 618 | assert(net >= 0 && net < NET_MAX); |
| 619 | LOCK(g_proxyinfo_mutex); |
| 620 | if (!proxyInfo[net].IsValid()) |
| 621 | return false; |
| 622 | proxyInfoOut = proxyInfo[net]; |
| 623 | return true; |
| 624 | } |
| 625 | |
| 626 | bool SetNameProxy(const Proxy &addrProxy) { |
| 627 | if (!addrProxy.IsValid()) |
no test coverage detected