@@ -104,7 +104,7 @@ static RPCHelpMan getpeerinfo()
104
104
{RPCResult::Type::STR, " addr" , " (host:port) The IP address and port of the peer" },
105
105
{RPCResult::Type::STR, " addrbind" , " (ip:port) Bind address of the connection to the peer" },
106
106
{RPCResult::Type::STR, " addrlocal" , " (ip:port) Local address as reported by the peer" },
107
- {RPCResult::Type::STR, " network" , " Network (ipv4, ipv6, or onion) the peer connected through " },
107
+ {RPCResult::Type::STR, " network" , " Network (" + Join ( GetNetworkNames ( /* append_unroutable */ true ), " , " ) + " ) " },
108
108
{RPCResult::Type::NUM, " mapped_as" , " The AS in the BGP route to the peer used for diversifying\n "
109
109
" peer selection (only available if the asmap config flag is set)" },
110
110
{RPCResult::Type::STR_HEX, " services" , " The services offered" },
@@ -587,7 +587,7 @@ static RPCHelpMan getnetworkinfo()
587
587
{
588
588
{RPCResult::Type::OBJ, " " , " " ,
589
589
{
590
- {RPCResult::Type::STR, " name" , " network (ipv4, ipv6 or onion )" },
590
+ {RPCResult::Type::STR, " name" , " network (" + Join ( GetNetworkNames (), " , " ) + " )" },
591
591
{RPCResult::Type::BOOL, " limited" , " is the network limited using -onlynet?" },
592
592
{RPCResult::Type::BOOL, " reachable" , " is the network reachable?" },
593
593
{RPCResult::Type::STR, " proxy" , " (\" host:port\" ) the proxy that is used for this network, or empty if none" },
0 commit comments