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

fix(net): check if the node has all needed fields

Fixes ##5766
This commit is contained in:
accelsao 2020-01-14 09:04:55 +08:00 committed by Anthony Bilinski
parent cf672375be
commit bdb3b61ee0
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

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) {