Skip to content

Commit

Permalink
rpc: update GetNetworksInfo() to not return unsupported networks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack authored and furszy committed Aug 10, 2021
1 parent 57fc7b0 commit d8e01b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rpc/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,7 @@ static UniValue GetNetworksInfo()
UniValue networks(UniValue::VARR);
for (int n = 0; n < NET_MAX; ++n) {
enum Network network = static_cast<enum Network>(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);
Expand Down

0 comments on commit d8e01b5

Please sign in to comment.