From 1c3af37881adbbc37fb9924bcf69c403fcae1ae7 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Tue, 19 Jan 2021 15:36:39 +0100 Subject: net: create GetNetworkNames() --- src/netbase.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/netbase.h') 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 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); -- cgit v1.2.3