mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2026-01-04 19:49:02 +08:00
Update ConfigBuilder.cpp
This commit is contained in:
parent
a54ade748b
commit
bb039cee65
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user