v1.0.0beta16.4

~增加mac过滤白名单功能
~屏蔽不使用本地dns功能,如有需求可在dns配置中自行编辑
~屏蔽使用自定义配置功能,现在可以手动将自定义设置写入user.yaml、自定义规则写入rules.yaml,运行时会自动合并配置文件
~修复设置http代理加密后导致更新检测失败的bug
~修复添加3个以上dns时添加失败的bug
This commit is contained in:
juewuy
2020-11-03 16:50:10 +08:00
parent 6949df4e3d
commit 9687748b85
2 changed files with 7 additions and 6 deletions

View File

@@ -244,14 +244,14 @@ setdns(){
clashadv
elif [ "$num" = 1 ]; then
read -p "请输入新的DNS > " dns_nameserver
dns_nameserver=$(echo $dns_nameserver | sed 's/|/\,\ /')
dns_nameserver=$(echo $dns_nameserver | sed 's/|/\,\ /g')
if [ -n "$dns_nameserver" ]; then
setconfig dns_nameserver \'$dns_nameserver\'
echo -e "\033[32m设置成功\033[0m"
fi
elif [ "$num" = 2 ]; then
read -p "请输入新的DNS > " dns_fallback
dns_fallback=$(echo $dns_fallback | sed 's/|/\,\ /')
dns_fallback=$(echo $dns_fallback | sed 's/|/\,\ /g')
if [ -n "$dns_fallback" ]; then
setconfig dns_fallback \'$dns_fallback\'
echo -e "\033[32m设置成功\033[0m"