| 540 | } |
| 541 | |
| 542 | bool SetProxy(enum Network net, const proxyType &addrProxy) { |
| 543 | assert(net >= 0 && net < NET_MAX); |
| 544 | if (!addrProxy.IsValid()) |
| 545 | return false; |
| 546 | LOCK(cs_proxyInfos); |
| 547 | proxyInfo[net] = addrProxy; |
| 548 | return true; |
| 549 | } |
| 550 | |
| 551 | bool GetProxy(enum Network net, proxyType &proxyInfoOut) { |
| 552 | assert(net >= 0 && net < NET_MAX); |
no test coverage detected