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
@@ -12,7 +12,7 @@ cd ..
git clone https://github.com/jbeder/yaml-cpp --depth=1 git clone https://github.com/jbeder/yaml-cpp --depth=1
cd yaml-cpp cd yaml-cpp
cmake -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null cmake -DCMAKE_BUILD_TYPE=Release -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
make install -j2 > /dev/null make install -j2 > /dev/null
cd .. cd ..
+1 -1
View File
@@ -13,7 +13,7 @@ cd ..
git clone https://github.com/jbeder/yaml-cpp --depth=1 git clone https://github.com/jbeder/yaml-cpp --depth=1
cd yaml-cpp cd yaml-cpp
cmake -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null cmake -DCMAKE_BUILD_TYPE=Release -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
make install -j8 > /dev/null make install -j8 > /dev/null
cd .. cd ..
+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)\"?:")) 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); Node yamlnode = Load(sub);
if(yamlnode.size() && (yamlnode["Proxy"].IsDefined() || yamlnode["proxies"].IsDefined())) if(yamlnode.size() && (yamlnode["Proxy"].IsDefined() || yamlnode["proxies"].IsDefined()))
{ {