mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-01 09:14:15 +00:00
Merge pull request #108 from gengjiawen/fix/hysteria2-null-bandwidth
fix(clash): ignore null up/down in hysteria2 proxies
This commit is contained in:
1 file changed
+2
-2
@@ -1648,7 +1648,7 @@ void explodeClash(Node yamlnode, std::vector<Proxy> &nodes) {
|
||||
singleproxy["password"] >>= password;
|
||||
if (password.empty())
|
||||
singleproxy["auth"] >>= password;
|
||||
if (singleproxy["up"].IsDefined()) {
|
||||
if (singleproxy["up"].IsDefined() && !singleproxy["up"].IsNull()) {
|
||||
singleproxy["up"] >>= up;
|
||||
if (up.empty()) {
|
||||
try {
|
||||
@@ -1657,7 +1657,7 @@ void explodeClash(Node yamlnode, std::vector<Proxy> &nodes) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (singleproxy["down"].IsDefined()) {
|
||||
if (singleproxy["down"].IsDefined() && !singleproxy["down"].IsNull()) {
|
||||
singleproxy["down"] >>= down;
|
||||
if (down.empty()) {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user