Enhancements

Fix when list option is set to true, the program will still try to load groups and rulesets.
Add an interface to provide local/remote rulesets for Surge/Quantumult X.
Add converting rulesets to Quantumult X format and adding as remote filters.
This commit is contained in:
Tindy X committed 2020-02-15 18:00:59 +08:00
1 parent 9c8a8d8268
commit f6a09670be
3 files changed
+92 -49

No files matched your search

+2 -1
View File
@@ -31,10 +31,11 @@ struct extra_settings
bool skip_cert_verify = false;
bool filter_deprecated = false;
std::string surge_ssr_path;
std::string managed_config_prefix;
};
void rulesetToClash(YAML::Node &base_rule, std::vector<ruleset_content> &ruleset_content_array, bool overwrite_original_rules);
void rulesetToSurge(INIReader &base_rule, std::vector<ruleset_content> &ruleset_content_array, int surge_ver, bool overwrite_original_rules);
void rulesetToSurge(INIReader &base_rule, std::vector<ruleset_content> &ruleset_content_array, int surge_ver, bool overwrite_original_rules, std::string remote_path_prefix);
std::string netchToClash(std::vector<nodeInfo> &nodes, std::string &base_conf, std::vector<ruleset_content> &ruleset_content_array, string_array &extra_proxy_group, bool clashR, extra_settings &ext);
void netchToClash(std::vector<nodeInfo> &nodes, YAML::Node &yamlnode, string_array &extra_proxy_group, bool clashR, extra_settings &ext);
std::string netchToSurge(std::vector<nodeInfo> &nodes, std::string &base_conf, std::vector<ruleset_content> &ruleset_content_array, string_array &extra_proxy_group, int surge_ver, extra_settings &ext);