Add localSocket to listpeers JSON output

This commit is contained in:
Joseph Henry 2022-04-28 15:58:12 -07:00
parent 59151fbf86
commit 55ec325961
No known key found for this signature in database
GPG Key ID: C45B33FF5EBC9344

View File

@ -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;