Enhancements

Fix a potential bug which will cause SSD subscription to be ignored.
Add experimental Surge subscription output.
Change the default generate options.
Update build scripts.
This commit is contained in:
Tindy X committed 2019-11-08 14:50:28 +08:00
1 parent 46b78ce250
commit 6533df2792
8 files changed
+358 -35

No files matched your search

+5 -5
View File
@@ -1486,9 +1486,10 @@ void explodeSub(std::string sub, bool sslibev, bool ssrlibev, std::string custom
std::string strLink;
nodeInfo node;
//try to parse as surge configuration
if(explodeSurge(sub, custom_port, local_port, nodes, sslibev))
//try to parse as SSD configuration
if(strFind(sub, "ssd://"))
{
explodeSSD(sub, sslibev, custom_port, local_port, nodes);
return;
}
@@ -1510,10 +1511,9 @@ void explodeSub(std::string sub, bool sslibev, bool ssrlibev, std::string custom
//ignore
}
//try to parse as SSD configuration
if(strFind(sub, "ssd://"))
//try to parse as surge configuration
if(explodeSurge(sub, custom_port, local_port, nodes, sslibev))
{
explodeSSD(sub, sslibev, custom_port, local_port, nodes);
return;
}