mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-20 21:43:08 +00:00
Add localSocket to listpeers JSON output
This commit is contained in:
parent
59151fbf86
commit
55ec325961
@ -568,6 +568,7 @@ static void _peerToJson(nlohmann::json &pj,const ZT_Peer *peer)
|
||||
j["active"] = (bool)(peer->paths[i].expired == 0);
|
||||
j["expired"] = (bool)(peer->paths[i].expired != 0);
|
||||
j["preferred"] = (bool)(peer->paths[i].preferred != 0);
|
||||
j["localSocket"] = peer->paths[i].localSocket;
|
||||
pa.push_back(j);
|
||||
}
|
||||
pj["paths"] = pa;
|
||||
|
Loading…
Reference in New Issue
Block a user