Add addrlocal to GetPeerInfoResult.

ok @davecgh
This commit is contained in:
David Hill 2014-04-09 22:39:25 -04:00
parent 50473f6ed3
commit 8a503c6148

View file

@ -85,6 +85,7 @@ type DecodeScriptResult struct {
// GetPeerInfoResult models the data returned from the getpeerinfo command. // GetPeerInfoResult models the data returned from the getpeerinfo command.
type GetPeerInfoResult struct { type GetPeerInfoResult struct {
Addr string `json:"addr"` Addr string `json:"addr"`
AddrLocal string `json:"addrlocal,omitempty"`
Services string `json:"services"` Services string `json:"services"`
LastSend int64 `json:"lastsend"` LastSend int64 `json:"lastsend"`
LastRecv int64 `json:"lastrecv"` LastRecv int64 `json:"lastrecv"`