@@ -24,6 +24,7 @@ type PeerEntry struct {
24
24
PublicKey string `json:"key"`
25
25
Port uint64 `json:"port"`
26
26
Priority uint64 `json:"priority"`
27
+ Multipath bool `json:"multipath,omitempty"`
27
28
RXBytes DataUnit `json:"bytes_recvd,omitempty"`
28
29
TXBytes DataUnit `json:"bytes_sent,omitempty"`
29
30
Uptime float64 `json:"uptime,omitempty"`
@@ -37,14 +38,15 @@ func (a *AdminSocket) getPeersHandler(req *GetPeersRequest, res *GetPeersRespons
37
38
res .Peers = make ([]PeerEntry , 0 , len (peers ))
38
39
for _ , p := range peers {
39
40
peer := PeerEntry {
40
- Port : p .Port ,
41
- Up : p .Up ,
42
- Inbound : p .Inbound ,
43
- Priority : uint64 (p .Priority ), // can't be uint8 thanks to gobind
44
- URI : p .URI ,
45
- RXBytes : DataUnit (p .RXBytes ),
46
- TXBytes : DataUnit (p .TXBytes ),
47
- Uptime : p .Uptime .Seconds (),
41
+ Port : p .Port ,
42
+ Up : p .Up ,
43
+ Inbound : p .Inbound ,
44
+ Priority : uint64 (p .Priority ), // can't be uint8 thanks to gobind
45
+ Multipath : p .Multipath ,
46
+ URI : p .URI ,
47
+ RXBytes : DataUnit (p .RXBytes ),
48
+ TXBytes : DataUnit (p .TXBytes ),
49
+ Uptime : p .Uptime .Seconds (),
48
50
}
49
51
if p .Latency > 0 {
50
52
peer .Latency = p .Latency
0 commit comments