From 9a75e1e5697476058b56cd8014a36de31bfecd4c 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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 43c525b6a0..ea08ddfeda 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -486,11 +486,9 @@ static RPCHelpMan getnettotals() static UniValue GetNetworksInfo() { UniValue networks(UniValue::VARR); - for(int n=0; n(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);