1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #5954

accelsao (1):
      fix(net): check if the node has all needed fields
This commit is contained in:
sudden6 2020-01-16 08:59:18 +01:00
commit 41f05f3a02
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -117,7 +117,7 @@ void BootstrapNodeUpdater::jsonNodeToDhtServer(const QJsonObject& node, QList<Dh
// first check if the node in question has all needed fields
bool found = true;
for (const auto& key : NodeFields::neededFields) {
found |= node.contains(key);
found &= node.contains(key);
}
if (!found) {