mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-05 11:12:12 +00:00
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:
69 files changed
+807
-1285
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user