Update ConfigBuilder.cpp

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

View File

@ -753,13 +753,12 @@ namespace Configs {
};
}
else
if(ruleSetMap.count(item.toStdString()) > 0) {
QString srsUrl = get_jsdelivr_link(QString::fromStdString(ruleSetMap.at(item.toStdString())));
if(ruleSetMap.count(QUrl(item).fileName().toStdString()) > 0) {
ruleSetArray += QJsonObject{
{"type", "remote"},
{"tag", get_rule_set_name(srsUrl)},
{"tag", item},
{"format", "binary"},
{"url", srsUrl},
{"url", get_jsdelivr_link(QString::fromStdString(ruleSetMap.at(QUrl(item).fileName().toStdString())))},
};
}
}