mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 05:53:09 +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["active"] = (bool)(peer->paths[i].expired == 0);
|
||||||
j["expired"] = (bool)(peer->paths[i].expired != 0);
|
j["expired"] = (bool)(peer->paths[i].expired != 0);
|
||||||
j["preferred"] = (bool)(peer->paths[i].preferred != 0);
|
j["preferred"] = (bool)(peer->paths[i].preferred != 0);
|
||||||
|
j["localSocket"] = peer->paths[i].localSocket;
|
||||||
pa.push_back(j);
|
pa.push_back(j);
|
||||||
}
|
}
|
||||||
pj["paths"] = pa;
|
pj["paths"] = pa;
|
||||||
|
Loading…
Reference in New Issue
Block a user