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 else
if(ruleSetMap.count(item.toStdString()) > 0) { if(ruleSetMap.count(QUrl(item).fileName().toStdString()) > 0) {
QString srsUrl = get_jsdelivr_link(QString::fromStdString(ruleSetMap.at(item.toStdString())));
ruleSetArray += QJsonObject{ ruleSetArray += QJsonObject{
{"type", "remote"}, {"type", "remote"},
{"tag", get_rule_set_name(srsUrl)}, {"tag", item},
{"format", "binary"}, {"format", "binary"},
{"url", srsUrl}, {"url", get_jsdelivr_link(QString::fromStdString(ruleSetMap.at(QUrl(item).fileName().toStdString())))},
}; };
} }
} }