aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJosh Lehan <[email protected]>2013-08-21 22:50:19 -0700
committerJosh Lehan <[email protected]>2013-10-21 02:23:05 -0700
commit547c61f8d8b42296fd0a51bad4a2e3a3765aa7fd (patch)
treecb38813107fc20a5a7a5749f4812d6ec0bf785d7 /src/net.h
parentMerge pull request #3104 from Diapolo/rpcssl-defaultciphers (diff)
downloaddiscoin-547c61f8d8b42296fd0a51bad4a2e3a3765aa7fd.tar.xz
discoin-547c61f8d8b42296fd0a51bad4a2e3a3765aa7fd.zip
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.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 2c2d3a768..a1dc19df3 100644
--- a/src/net.h
+++ b/src/net.h
@@ -121,6 +121,7 @@ public:
bool fSyncNode;
double dPingTime;
double dPingWait;
+ std::string addrLocal;
};