Enhancements

Fix not adding local rulesets as Clash rule-providers.
Add "nullnode" as node placeholder to export configurations without adding any real node.
Add support for using !!import in source subscription URLs.
Add support for allowInsecure and tfo argument in Trojan links.
Optimize codes.
This commit is contained in:
Tindy X committed 2020-06-25 00:53:38 +08:00
1 parent 8138fadd48
commit d042f00a8e
7 files changed
+36 -17

No files matched your search

+2 -1
View File
@@ -290,7 +290,7 @@ int renderClashScript(YAML::Node &base_rule, std::vector<ruleset_content> &rules
}
if(remote_path_prefix.size())
{
if(isLink(rule_path) || startsWith(rule_path, "data:"))
if(fileExist(rule_path, true) || isLink(rule_path))
{
rule_name = std::to_string(hash_(rule_group + rule_path));
names[rule_name] = rule_group;
@@ -314,6 +314,7 @@ int renderClashScript(YAML::Node &base_rule, std::vector<ruleset_content> &rules
continue;
}
retrieved_rules = convertRuleset(retrieved_rules, x.rule_type);
char delimiter = getLineBreak(retrieved_rules);
strStrm.clear();