| 512 | } |
| 513 | |
| 514 | bool SetProxy(enum Network net, const proxyType &addrProxy) { |
| 515 | assert(net >= 0 && net < NET_MAX); |
| 516 | if (!addrProxy.IsValid()) |
| 517 | return false; |
| 518 | LOCK(cs_proxyInfos); |
| 519 | proxyInfo[net] = addrProxy; |
| 520 | return true; |
| 521 | } |
| 522 | |
| 523 | bool GetProxy(enum Network net, proxyType &proxyInfoOut) { |
| 524 | assert(net >= 0 && net < NET_MAX); |