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
cf672375be
commit
bdb3b61ee0
|
@ -117,7 +117,7 @@ void BootstrapNodeUpdater::jsonNodeToDhtServer(const QJsonObject& node, QList<Dh
|
||||||
// first check if the node in question has all needed fields
|
// first check if the node in question has all needed fields
|
||||||
bool found = true;
|
bool found = true;
|
||||||
for (const auto& key : NodeFields::neededFields) {
|
for (const auto& key : NodeFields::neededFields) {
|
||||||
found |= node.contains(key);
|
found &= node.contains(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user