Bug fixes

Fix Surge SSID groups not being correctly generated.
Fix snippet importing not filtering line break.
Add SSID group example.
This commit is contained in:
Tindy X committed 2020-02-10 11:37:40 +08:00
1 parent 6f64f27361
commit ac75c9513a
4 files changed
+89 -84

No files matched your search

+2 -2
View File
@@ -955,8 +955,8 @@ std::string netchToSurge(std::vector<nodeInfo> &nodes, std::string &base_conf, s
{
if(vArray.size() < 4)
continue;
proxy = vArray[1] + ",default=" + vArray[2];
proxy += std::accumulate(vArray.begin() + 3, vArray.end(), vArray[3], [](std::string a, std::string b)
proxy = vArray[1] + ",default=" + vArray[2] + ",";
proxy += std::accumulate(vArray.begin() + 4, vArray.end(), vArray[3], [](std::string a, std::string b)
{
return std::move(a) + "," + std::move(b);
});