rpc: include peer's remote IP in /net_info (#3052)

Refs #3047
This commit is contained in:
Anton Kaliaev
2019-01-11 17:24:45 +03:00
committed by Ethan Buchman
parent 51094f9417
commit 81c51cd4fc
3 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,7 @@ func NetInfo() (*ctypes.ResultNetInfo, error) {
NodeInfo: nodeInfo,
IsOutbound: peer.IsOutbound(),
ConnectionStatus: peer.Status(),
RemoteIP: peer.RemoteIP(),
})
}
// TODO: Should we include PersistentPeers and Seeds in here?