Browse Source

Add localSocket to listpeers JSON output

Joseph Henry 3 years ago
parent
commit
55ec325961
1 changed files with 1 additions and 0 deletions
  1. 1 0
      service/OneService.cpp

+ 1 - 0
service/OneService.cpp

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