Optimize codes

This commit is contained in:
Tindy X committed 2019-12-28 18:40:08 +08:00
1 parent 326db89e8c
commit 914c8e9fbb
7 files changed
+24 -24

No files matched your search

+2 -2
View File
@@ -482,7 +482,7 @@ void groupGenerate(std::string &rule, std::vector<nodeInfo> &nodelist, std::vect
}
}
YAML::Node netchToClash(std::vector<nodeInfo> &nodes, YAML::Node &yamlnode, std::vector<ruleset_content> &ruleset_content_array, string_array &extra_proxy_group, bool clashR, extra_settings &ext)
YAML::Node netchToClash(std::vector<nodeInfo> &nodes, YAML::Node &yamlnode, string_array &extra_proxy_group, bool clashR, extra_settings &ext)
{
try_config_lock();
YAML::Node proxies, singleproxy, singlegroup, original_groups;
@@ -692,7 +692,7 @@ std::string netchToClash(std::vector<nodeInfo> &nodes, std::string &base_conf, s
return std::string();
}
yamlnode = netchToClash(nodes, yamlnode, ruleset_content_array, extra_proxy_group, clashR, ext);
yamlnode = netchToClash(nodes, yamlnode, extra_proxy_group, clashR, ext);
if(ext.nodelist)
return YAML::Dump(yamlnode);