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
parent 7b45d7d9e1
commit ca4f14cc4c

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