Enhancements

Add exprtimental support for generating Mellow configuration.
Add proxy customization for downloading rulesets and subscriptions.
Add more customizations in manage URL arguments.
Optimize codes.
INIReader: Fix line break remove not working.
This commit is contained in:
Tindy X committed 2019-11-21 01:20:22 +08:00
1 parent a68363e108
commit 6d646c650e
9 files changed
+410 -50

No files matched your search

+17 -8
View File
@@ -10,15 +10,24 @@ struct ruleset_content
std::string rule_content;
};
struct extra_settings
{
bool add_emoji = false;
bool remove_emoji = false;
bool append_proxy_type = true;
string_array include_remarks;
};
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);
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);
std::string netchToSS(std::vector<nodeInfo> &nodes);
std::string netchToSSR(std::vector<nodeInfo> &nodes);
std::string netchToVMess(std::vector<nodeInfo> &nodes);
std::string netchToQuanX(std::vector<nodeInfo> &nodes);
std::string netchToQuan(std::vector<nodeInfo> &nodes);
std::string netchToSSD(std::vector<nodeInfo> &nodes, std::string &group);
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);
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);
std::string netchToMellow(std::vector<nodeInfo> &nodes, std::string &base_conf, std::vector<ruleset_content> &ruleset_content_array, string_array &extra_proxy_group, extra_settings &ext);
std::string netchToSS(std::vector<nodeInfo> &nodes, extra_settings &ext);
std::string netchToSSR(std::vector<nodeInfo> &nodes, extra_settings &ext);
std::string netchToVMess(std::vector<nodeInfo> &nodes, extra_settings &ext);
std::string netchToQuanX(std::vector<nodeInfo> &nodes, extra_settings &ext);
std::string netchToQuan(std::vector<nodeInfo> &nodes, extra_settings &ext);
std::string netchToSSD(std::vector<nodeInfo> &nodes, std::string &group, extra_settings &ext);
std::string buildGistData(std::string name, std::string content);
int uploadGist(std::string name, std::string path, std::string content, bool writeManageURL);