net: create GetNetworkNames()

This commit is contained in:
Jon Atack
2021-01-19 15:36:39 +01:00
parent b45eae4d53
commit 1c3af37881
3 changed files with 17 additions and 1 deletions

View File

@@ -39,6 +39,8 @@ public:
enum Network ParseNetwork(const std::string& net);
std::string GetNetworkName(enum Network net);
/** Return a vector of publicly routable Network names; optionally append NET_UNROUTABLE. */
std::vector<std::string> GetNetworkNames(bool append_unroutable = false);
bool SetProxy(enum Network net, const proxyType &addrProxy);
bool GetProxy(enum Network net, proxyType &proxyInfoOut);
bool IsProxy(const CNetAddr &addr);