Skip to content

Commit

Permalink
尝试修正缺少RULE-SET问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsmallchi authored Feb 26, 2024
1 parent 0612d96 commit 9db92da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/generator/template/templates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ int renderClashScript(YAML::Node &base_rule, std::vector<RulesetContent> &rulese
else
rules.emplace_back("RULE-SET," + rule_name + "_ipcidr," + rule_group);
}
if(!has_domain[rule_name] && !has_ipcidr[rule_name] && !script)
rules.emplace_back("RULE-SET," + rule_name + "," + rule_group);
if(std::find(groups.begin(), groups.end(), rule_name) == groups.end())
groups.emplace_back(rule_name);
}
Expand Down

0 comments on commit 9db92da

Please sign in to comment.