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:
parent
7b45d7d9e1
commit
ca4f14cc4c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user