| 724 | } |
| 725 | |
| 726 | std::optional<Proxy> GetProxy(enum Network net) |
| 727 | { |
| 728 | assert(net >= 0 && net < NET_MAX); |
| 729 | LOCK(g_proxyinfo_mutex); |
| 730 | if (!proxyInfo[net].IsValid()) { |
| 731 | return std::nullopt; |
| 732 | } |
| 733 | return proxyInfo[net]; |
| 734 | } |
| 735 | |
| 736 | bool SetNameProxy(const Proxy &addrProxy) { |
| 737 | if (!addrProxy.IsValid()) |
no test coverage detected