mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 16:35:26 +00:00
JSON fix
This commit is contained in:
parent
7d89511fda
commit
9918a1092f
@ -739,10 +739,9 @@ int main(int argc,char **argv)
|
||||
bool first = true;
|
||||
std::lock_guard<std::mutex> l(peersByIdentity_l);
|
||||
for(auto p=peersByIdentity.begin();p!=peersByIdentity.end();++p) {
|
||||
if (first) {
|
||||
if (first)
|
||||
first = false;
|
||||
o << ',';
|
||||
}
|
||||
else o << ',';
|
||||
o <<
|
||||
"{\"address\":\"" << p->first.address().toString(tmp) << "\""
|
||||
",\"latency\":-1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user