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