Bug fixes

Fix broken Clash Shasowsocks configuration parser.
Add more default options in preference settings.
This commit is contained in:
Tindy X
2019-11-12 12:37:16 +08:00
parent e4f5bcdbc0
commit 732e2f8bcd
2 changed files with 3 additions and 2 deletions

View File

@@ -137,6 +137,7 @@ surge_ruleset=📲 电报信息,https://raw.githubusercontent.com/ConnersHua/Pro
surge_ruleset=🔰 节点选择,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Global.list
surge_ruleset=🍎 苹果服务,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/Apple.list
surge_ruleset=DIRECT,https://raw.githubusercontent.com/ConnersHua/Profiles/master/Surge/Ruleset/China.list
surge_ruleset=DIRECT,[]GEOIP,CN
surge_ruleset=💕 规则自选,[]MATCH
[clash_proxy_group]
@@ -177,7 +178,7 @@ custom_proxy_group=🎥 NETFLIX`select`[]🔰 节点选择`[]♻️ 自动选择
custom_proxy_group=⛔️ 广告拦截`select`[]🛑 全球拦截`[]🎯 全球直连`[]🔰 节点选择
custom_proxy_group=🚫 运营劫持`select`[]🛑 全球拦截`[]🎯 全球直连`[]🔰 节点选择
custom_proxy_group=🌍 国外媒体`select`[]♻️ 自动选择`[]🎯 全球直连`.*
custom_proxy_group=🌏 港台媒体`select`(HGC|HKBN|PCCW|HKT|深台|彰化|新北|台|hk|香港|tw)
custom_proxy_group=🌏 港台媒体`select`(HGC|HKBN|PCCW|HKT|深台|彰化|新北|台|hk|香港|tw)`[]🔰 节点选择`[]DIRECT
custom_proxy_group=📲 电报信息`select`[]🔰 节点选择`[]♻️ 自动选择`[]DIRECT`(美|新加坡|sg|us)`.*
custom_proxy_group=🍎 苹果服务`select`[]🔰 节点选择`[]🎯 全球直连`[]♻️ 自动选择`.*
custom_proxy_group=💕 规则自选`select`[]🔰 节点选择`[]🎯 全球直连`[]♻️ 自动选择`.*

View File

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