Adding new "addrlocal" field to RPC getpeerinfo.

The existing CNode::addrLocal member is revealed to the user,
as an address string, similar to the existing "addr" field.
Instead of showing garbage or empty string,
it simply will not appear in the output if local address not known yet.
This commit is contained in:
Josh Lehan
2013-08-21 22:50:19 -07:00
parent cc7562b7d2
commit 547c61f8d8
3 changed files with 6 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ public:
bool fSyncNode;
double dPingTime;
double dPingWait;
std::string addrLocal;
};