Nodes: properly initialize hardcoded list

This commit is contained in:
tobtoht 2022-02-25 23:06:25 +01:00
parent f3ef0bd675
commit 3d074460e1
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -162,7 +162,9 @@ void Nodes::loadConfig() {
if (nodes_obj.contains(netKey)) {
QJsonArray nodes_list;
nodes_list = nodes_json[netKey].toObject()["tor"].toArray();
nodes_list.append(nodes_json[netKey].toObject()["clearnet"].toArray());
for (const auto &node : nodes_json[netKey].toObject()["clearnet"].toArray()) {
nodes_list.append(node);
}
for (auto node: nodes_list) {
FeatherNode wsNode(node.toString());