OSDN Git Service

Fix `getaddednodeinfo` RPC call with dns=false
authormonacoinproject <monacoinproject@gmail.com>
Sun, 6 Apr 2014 15:19:56 +0000 (00:19 +0900)
committermonacoinproject <monacoinproject@gmail.com>
Sun, 6 Apr 2014 15:19:56 +0000 (00:19 +0900)
commite3f1942bfe052191d82d9e5a55a88bad26d76405
treec26792d7a02a07c41fcf4bf92ed750b42dd9e9bb
parentb7ad8ef78d7317a53a4598e9b71168139f7d9fe1
Fix `getaddednodeinfo` RPC call with dns=false

The getaddednodeinfo RPC call, when invoked with the dns flag set to
false, returns a malformed JSON object with duplicate keys.

Change this to return an array of objects with one key as
shown in the help message.

Fixes #3581.
src/rpcnet.cpp