Fix some keys might be missing when parsing some Clash subscriptions

Update build scripts.
This commit is contained in:
Tindy X committed 2020-07-05 11:27:46 +08:00
1 parent 6cb369fa34
commit 5c9bb44054
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1924,7 +1924,7 @@ void explodeSub(std::string sub, bool sslibev, bool ssrlibev, const std::string
{
if(!processed && regFind(sub, "\"?(Proxy|proxies)\"?:"))
{
regGetMatch(sub, R"(^(?:Proxy|proxies):$\s(?:(?:^ +?.*$| *?-.*$|)\s)+)", 1, &sub);
regGetMatch(sub, R"(^(?:Proxy|proxies):$\s(?:(?:^ +?.*$| *?-.*$|)\s?)+)", 1, &sub);
Node yamlnode = Load(sub);
if(yamlnode.size() && (yamlnode["Proxy"].IsDefined() || yamlnode["proxies"].IsDefined()))
{