mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-28 12:22:37 +00:00
Fix a bug when running in API mode, local rulesets will not be added.
This commit is contained in:
@@ -261,6 +261,8 @@ void rulesetToClash(YAML::Node &base_rule, std::vector<ruleset_content> &ruleset
|
|||||||
else if(strLine.find("DOMAIN-SUFFIX") == 0)
|
else if(strLine.find("DOMAIN-SUFFIX") == 0)
|
||||||
strLine = replace_all_distinct(strLine, ",force-remote-dns", "");
|
strLine = replace_all_distinct(strLine, ",force-remote-dns", "");
|
||||||
strLine += "," + rule_group;
|
strLine += "," + rule_group;
|
||||||
|
//if(strLine.find("IP-CIDR") == 0)
|
||||||
|
//strLine = regReplace(strLine, "^(.*)(,no-resolve)(.*)$", "$1$3$2");
|
||||||
allRules.emplace_back(strLine);
|
allRules.emplace_back(strLine);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -297,12 +299,7 @@ void rulesetToSurge(INIReader &base_rule, std::vector<ruleset_content> &ruleset_
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(fileExist(rule_path))
|
if(!fileExist(rule_path))
|
||||||
{
|
|
||||||
if(api_mode)
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if(surge_ver > 2)
|
if(surge_ver > 2)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user