mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-05 03:02:06 +00:00
Fix error about hysteria2.(#33)
This commit is contained in:
1 parent
766434b771
commit
383deb54a7
1 file changed
+14
-10
+14
-10
@@ -1486,18 +1486,22 @@ void explodeClash(Node yamlnode, std::vector<Proxy> &nodes) {
|
|||||||
singleproxy["password"] >>= password;
|
singleproxy["password"] >>= password;
|
||||||
if (password.empty())
|
if (password.empty())
|
||||||
singleproxy["auth"] >>= password;
|
singleproxy["auth"] >>= password;
|
||||||
singleproxy["up"] >>= up;
|
if (singleproxy["up"].IsDefined()) {
|
||||||
if (up.empty()) {
|
singleproxy["up"] >>= up;
|
||||||
try {
|
if (up.empty()) {
|
||||||
up = singleproxy["up"].as<std::string>();
|
try {
|
||||||
} catch (const YAML::BadConversion& e) {
|
up = singleproxy["up"].as<std::string>();
|
||||||
|
} catch (const YAML::BadConversion& e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
singleproxy["down"] >>= down;
|
if (singleproxy["down"].IsDefined()) {
|
||||||
if (down.empty()) {
|
singleproxy["down"] >>= down;
|
||||||
try {
|
if (down.empty()) {
|
||||||
down = singleproxy["down"].as<std::string>();
|
try {
|
||||||
} catch (const YAML::BadConversion& e) {
|
down = singleproxy["down"].as<std::string>();
|
||||||
|
} catch (const YAML::BadConversion& e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
singleproxy["obfs"] >>= obfsParam;
|
singleproxy["obfs"] >>= obfsParam;
|
||||||
|
|||||||
Reference in new issue
Block a user