From d8e01b507a47032797295b6c01e035fef1ee9861 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Sun, 11 Oct 2020 11:49:08 +0200 Subject: [PATCH] rpc: update GetNetworksInfo() to not return unsupported networks --- src/rpc/net.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 2479d58a189fa..f392bf3c3ccc3 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -349,8 +349,7 @@ static UniValue GetNetworksInfo() UniValue networks(UniValue::VARR); for (int n = 0; n < NET_MAX; ++n) { enum Network network = static_cast(n); - if (network == NET_UNROUTABLE || network == NET_INTERNAL) - continue; + if (network == NET_UNROUTABLE || network == NET_I2P || network == NET_CJDNS || network == NET_INTERNAL) continue; proxyType proxy; UniValue obj(UniValue::VOBJ); GetProxy(network, proxy);