Fix password missing when parsing Surge Shadowsocks nodes

This commit is contained in:
Tindy X
2020-03-17 19:26:18 +08:00
parent 82ec76261b
commit b5c15e8277

View File

@@ -1174,7 +1174,7 @@ bool explodeSurge(std::string surge, const std::string &custom_port, int local_p
switch(hash_(itemName))
{
case "encrypt-method"_hash: method = itemVal; break;
case "password"_hash: id = itemVal; break;
case "password"_hash: password = itemVal; break;
case "obfs"_hash:
plugin = "simple-obfs";
pluginopts_mode = itemVal;