Enhancements

Fix when processing duplicated node name for Surge, the program will crash.
Add an interface to directly convert Surge config to Clash config.
Add Netease Music IP ruleset.
Clean up codes.
Update build scripts.
This commit is contained in:
Tindy X committed 2020-02-10 18:22:12 +08:00
1 parent ac75c9513a
commit e14f7dd6bf
8 files changed
+1386 -1153

No files matched your search

+1331
View File
File diff suppressed because it is too large. Load diff
+17
View File
@@ -0,0 +1,17 @@
#ifndef INTERFACES_H_INCLUDED
#define INTERFACES_H_INCLUDED
#include <string>
#include <map>
#include "subexport.h"
#include "webserver.h"
void refreshRulesets(string_array &ruleset_list, std::vector<ruleset_content> &rca);
void readConf();
void generateBase();
std::string subconverter(RESPONSE_CALLBACK_ARGS);
std::string simpleToClashR(RESPONSE_CALLBACK_ARGS);
std::string surgeConfToClash(RESPONSE_CALLBACK_ARGS);
#endif // INTERFACES_H_INCLUDED
+11 -1152
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -819,7 +819,7 @@ std::string netchToSurge(std::vector<nodeInfo> &nodes, std::string &base_conf, s
x.remarks = "[" + type + "]" + x.remarks;
remark = x.remarks;
while(std::count(remarks_list.begin(), remarks_list.end(), remark) > 0)
while(std::count(remarks_list.begin(), remarks_list.end(), x.remarks) > 0)
x.remarks += "$";
remark = x.remarks;
+5
View File
@@ -2,6 +2,11 @@
#define SUBEXPORT_H_INCLUDED
#include <string>
#include <vector>
#include "misc.h"
#include "ini_reader.h"
#include "nodeinfo.h"
struct ruleset_content
{