| 521 | } |
| 522 | |
| 523 | bool GetProxy(enum Network net, proxyType &proxyInfoOut) { |
| 524 | assert(net >= 0 && net < NET_MAX); |
| 525 | LOCK(cs_proxyInfos); |
| 526 | if (!proxyInfo[net].IsValid()) |
| 527 | return false; |
| 528 | proxyInfoOut = proxyInfo[net]; |
| 529 | return true; |
| 530 | } |
| 531 | |
| 532 | bool SetNameProxy(const proxyType &addrProxy) { |
| 533 | if (!addrProxy.IsValid()) |
no test coverage detected