Enhancements

Add support for parsing Clash subscriptions in JSON format.
Add retry for downloading files.
Optimize codes.
Update local rulesets and configs.
This commit is contained in:
Tindy X committed 2020-06-05 10:52:59 +08:00
1 parent ac11260747
commit 8d0fc42ad3
69 files changed
+807 -1285

No files matched your search

+1 -1
View File
@@ -2012,7 +2012,7 @@ void explodeSub(std::string sub, bool sslibev, bool ssrlibev, const std::string
//try to parse as clash configuration
try
{
if(!processed && (strFind(sub, "Proxy:") || strFind(sub, "proxies:")))
if(!processed && regFind(sub, "\"?(Proxy|proxies)\"?:"))
{
regGetMatch(sub, R"(^(?:Proxy|proxies):$\s(?:(?:^ +?.*$| *?-.*$|)\s)+)", 1, &sub);
Node yamlnode = Load(sub);