Update script.js
This commit is contained in:
1 parent
558da59ac6
commit
2490ac85bb
1 file changed
+2
-2
@@ -171,11 +171,11 @@ const ruleProviderCommon = {
|
|||||||
function serviceRuleProviders(services, ruleProviderCommon) {
|
function serviceRuleProviders(services, ruleProviderCommon) {
|
||||||
const ruleProviders = {};
|
const ruleProviders = {};
|
||||||
for (const { name, alias } of services) {
|
for (const { name, alias } of services) {
|
||||||
if (!alias) alias = name;
|
const ruleName = alias ? alias : name;
|
||||||
ruleProviders[name.toLowerCase()] = {
|
ruleProviders[name.toLowerCase()] = {
|
||||||
...ruleProviderCommon,
|
...ruleProviderCommon,
|
||||||
behavior: "classical",
|
behavior: "classical",
|
||||||
url: `https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/${alias}/${alias}.yaml`,
|
url: `https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/${ruleName}/${ruleName}.yaml`,
|
||||||
path: `./ruleset/blackmatrix7/${name.toLowerCase()}.yaml`,
|
path: `./ruleset/blackmatrix7/${name.toLowerCase()}.yaml`,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user