Bug fixes

Fix broken parsing support for Clash Shadowsocks configuration.
Fix support for multipart Surge custom rule.
Optimize codes.
INIReader: Remove MAX_LINE_LENGTH limit.
This commit is contained in:
Tindy X committed 2019-11-12 09:56:48 +08:00
1 parent 4b80cbf4cf
commit e4f5bcdbc0
5 files changed
+20 -7

No files matched your search

+7
View File
@@ -880,6 +880,13 @@ void explodeClash(Node yamlnode, std::string custom_port, int local_port, std::v
yamlnode["Proxy"][i]["plugin-opts"]["host"] >> pluginopts_host;
}
}
else if(yamlnode["Proxy"][i]["obfs"].IsDefined())
{
plugin = "simple-obfs";
yamlnode["Proxy"][i]["obfs"] >> pluginopts_mode;
if(yamlnode["Proxy"][i]["plugin-opts"]["obfs-host"].IsDefined())
yamlnode["Proxy"][i]["obfs-host"] >> pluginopts_host;
}
else
plugin = "";