Update ConfigBuilder.cpp

This commit is contained in:
parhelia512 2025-08-15 06:47:10 +08:00 committed by GitHub
parent a54ade748b
commit bb039cee65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -752,15 +752,16 @@ namespace Configs {
{"url", item},
};
}
else {
QString srsUrl = get_jsdelivr_link(QString::fromStdString(ruleSetMap.at(item.toStdString())));
ruleSetArray += QJsonObject{
{"type", "remote"},
{"tag", get_rule_set_name(srsUrl)},
{"format", "binary"},
{"url", srsUrl},
};
}
else
if(ruleSetMap.count(item.toStdString()) > 0) {
QString srsUrl = get_jsdelivr_link(QString::fromStdString(ruleSetMap.at(item.toStdString())));
ruleSetArray += QJsonObject{
{"type", "remote"},
{"tag", get_rule_set_name(srsUrl)},
{"format", "binary"},
{"url", srsUrl},
};
}
}
routeObj["rule_set"] = ruleSetArray;