Add support for adding VMess nodes to Surfboard configurations

This commit is contained in:
Tindy X committed 2020-02-16 16:59:32 +08:00
1 parent 54a17413bc
commit b0b2546d93
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1060,7 +1060,7 @@ std::string subconverter(RESPONSE_CALLBACK_ARGS)
else
base_content = webGet(ext_surfboard_base, getSystemProxy());
output_content = netchToSurge(nodes, base_content, rca, extra_group, 2, ext);
output_content = netchToSurge(nodes, base_content, rca, extra_group, -3, ext);
if(upload == "true")
uploadGist("surfboard", upload_path, output_content, true);
+1 -1
View File
@@ -880,7 +880,7 @@ std::string netchToSurge(std::vector<nodeInfo> &nodes, std::string &base_conf, s
}
else if(x.linkType == SPEEDTEST_MESSAGE_FOUNDVMESS)
{
if(surge_ver < 4)
if(surge_ver < 4 && surge_ver != -3)
continue;
id = GetMember(json, "UserID");
aid = GetMember(json, "AlterID");