diff options
author | Jon Atack <jon@atack.com> | 2021-01-19 15:36:39 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-02-02 00:01:36 +0100 |
commit | 1c3af37881adbbc37fb9924bcf69c403fcae1ae7 (patch) | |
tree | 41b30429d6ec8767afab80187673d5ae7474871a /src/netbase.h | |
parent | b45eae4d5332f1da71ba9ec983fe7818fa4d32e9 (diff) |
net: create GetNetworkNames()
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/netbase.h b/src/netbase.h index ac4cd97673..17b029a40a 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -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); |