mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 10:12:50 +00:00
Fix compatibility when parsing Clash ShadowsocksR nodes
This commit is contained in:
1 file changed
+7
-1
@@ -1077,8 +1077,14 @@ void explodeClash(Node yamlnode, const std::string &custom_port, std::vector<nod
|
||||
singleproxy["cipher"] >>= cipher;
|
||||
singleproxy["password"] >>= password;
|
||||
singleproxy["protocol"] >>= protocol;
|
||||
singleproxy["protocolparam"] >>= protoparam;
|
||||
singleproxy["obfs"] >>= obfs;
|
||||
if(singleproxy["protocol-param"].IsDefined())
|
||||
singleproxy["protocol-param"] >>= protoparam;
|
||||
else
|
||||
singleproxy["protocolparam"] >>= protoparam;
|
||||
if(singleproxy["obfs-param"].IsDefined())
|
||||
singleproxy["obfs-param"] >>= obfsparam;
|
||||
else
|
||||
singleproxy["obfsparam"] >>= obfsparam;
|
||||
|
||||
node.linkType = SPEEDTEST_MESSAGE_FOUNDSSR;
|
||||
|
||||
Reference in new issue
Block a user