mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-04 10:42:04 +00:00
Fix Shadowsocks Plugin missing when parsing Clash configuration
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -854,9 +854,9 @@ void explodeClash(Node yamlnode, std::string custom_port, int local_port, std::v
|
|||||||
|
|
||||||
yamlnode["Proxy"][i]["cipher"] >> cipher;
|
yamlnode["Proxy"][i]["cipher"] >> cipher;
|
||||||
yamlnode["Proxy"][i]["password"] >> password;
|
yamlnode["Proxy"][i]["password"] >> password;
|
||||||
if(yamlnode["Proxy"][i]["plugin"].IsDefined())
|
if(yamlnode["Proxy"][i]["plugin"].IsDefined() && yamlnode["Proxy"][i]["plugin"].as<std::string>() == "obfs")
|
||||||
{
|
{
|
||||||
yamlnode["Proxy"][i]["plugin"] >> plugin;
|
plugin = "simple-obfs";
|
||||||
if(yamlnode["Proxy"][i]["plugin-opts"].IsDefined())
|
if(yamlnode["Proxy"][i]["plugin-opts"].IsDefined())
|
||||||
{
|
{
|
||||||
yamlnode["Proxy"][i]["plugin-opts"]["mode"] >> pluginopts_mode;
|
yamlnode["Proxy"][i]["plugin-opts"]["mode"] >> pluginopts_mode;
|
||||||
|
|||||||
Reference in new issue
Block a user