mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-26 03:11:21 +08:00
Update ConfigBuilder.cpp
This commit is contained in:
parent
bb039cee65
commit
e2b9e19997
@ -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())))},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user