Fix siblings in peers list, fix meter.

This commit is contained in:
Adam Ierymenko 2019-09-03 12:44:09 -07:00
parent fd6e8d8c5c
commit 50709cbd21
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
2 changed files with 18 additions and 9 deletions

View file

@ -779,6 +779,9 @@ int main(int argc,char **argv)
}
rp->sibling = true;
siblings.push_back(rp);
peersByIdentity[id] = rp;
peersByVirtAddr[id.address()].insert(rp);
peersByPhysAddr[ip].insert(rp);
} else {
printf("FATAL: invalid JSON while parsing siblings section in config file: sibling entry is not a JSON object" ZT_EOL_S);
return 1;