| 549 | } |
| 550 | |
| 551 | bool GetProxy(enum Network net, proxyType &proxyInfoOut) { |
| 552 | assert(net >= 0 && net < NET_MAX); |
| 553 | LOCK(cs_proxyInfos); |
| 554 | if (!proxyInfo[net].IsValid()) |
| 555 | return false; |
| 556 | proxyInfoOut = proxyInfo[net]; |
| 557 | return true; |
| 558 | } |
| 559 | |
| 560 | bool SetNameProxy(const proxyType &addrProxy) { |
| 561 | if (!addrProxy.IsValid()) |
no test coverage detected