mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
v1.0.0beta17
~同步最新版本Geoip数据库 ~新增更新切换版本到其他release版本的功能 ~调整release版本更新检测机制 ~修复部分设备提示缺少cmb的问题 ~修复使用自定义规则时,每次启动clash规则都会被重复导入的问题 ~进一步优化面板保存机制
This commit is contained in:
parent
ff7f6e7dc0
commit
5cdf5a520e
BIN
bin/Country.mmdb
BIN
bin/Country.mmdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
||||||
clash_v=1.2.0
|
clash_v=1.2.0
|
||||||
clashpre_v=2020.10.26
|
clashpre_v=2020.10.26
|
||||||
GeoIP_v=20201031
|
GeoIP_v=20201108
|
||||||
versionsh=1.0.0beta16.9
|
versionsh=1.0.0beta17
|
||||||
|
|
BIN
bin/yacd.tar.gz
BIN
bin/yacd.tar.gz
Binary file not shown.
|
@ -227,14 +227,14 @@ setdns(){
|
||||||
[ -z "$dns_nameserver" ] && dns_nameserver='114.114.114.114, 223.5.5.5'
|
[ -z "$dns_nameserver" ] && dns_nameserver='114.114.114.114, 223.5.5.5'
|
||||||
[ -z "$dns_fallback" ] && dns_fallback='1.0.0.1, 8.8.4.4'
|
[ -z "$dns_fallback" ] && dns_fallback='1.0.0.1, 8.8.4.4'
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
echo -e "当前基础DNS:\033[36m$dns_nameserver\033[0m"
|
echo -e "当前基础DNS:\033[32m$dns_nameserver\033[0m"
|
||||||
echo -e "fallbackDNS:\033[36m$dns_fallback\033[0m"
|
echo -e "fallbackDNS:\033[36m$dns_fallback\033[0m"
|
||||||
echo -e "多个DNS地址请用\033[30;47m | \033[0m分隔一次性输入"
|
echo -e "多个DNS地址请用\033[30;47m | \033[0m分隔一次性输入"
|
||||||
echo -e "\033[33m使用redir-host时,fallback组暂不支持tls或者https形式的DNS\033[0m"
|
echo -e "\033[33m使用redir-host时,fallback组暂不支持tls或者https形式的DNS\033[0m"
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
echo -e " 1 修改基础DNS"
|
echo -e " 1 修改\033[32m基础DNS\033[0m"
|
||||||
echo -e " 2 修改fallback_DNS"
|
echo -e " 2 修改\033[36mfallback_DNS\033[0m"
|
||||||
echo -e " 3 重置DNS配置"
|
echo -e " 3 \033[33m重置\033[0mDNS配置"
|
||||||
echo -e " 4 禁用内置DNS(慎用)"
|
echo -e " 4 禁用内置DNS(慎用)"
|
||||||
echo -e " 0 返回上级菜单"
|
echo -e " 0 返回上级菜单"
|
||||||
echo -----------------------------------------------
|
echo -----------------------------------------------
|
||||||
|
@ -246,14 +246,14 @@ setdns(){
|
||||||
read -p "请输入新的DNS > " dns_nameserver
|
read -p "请输入新的DNS > " dns_nameserver
|
||||||
dns_nameserver=$(echo $dns_nameserver | sed 's/|/\,\ /g')
|
dns_nameserver=$(echo $dns_nameserver | sed 's/|/\,\ /g')
|
||||||
if [ -n "$dns_nameserver" ]; then
|
if [ -n "$dns_nameserver" ]; then
|
||||||
setconfig dns_nameserver \'$dns_nameserver\'
|
setconfig dns_nameserver \'"$dns_nameserver"\'
|
||||||
echo -e "\033[32m设置成功!!!\033[0m"
|
echo -e "\033[32m设置成功!!!\033[0m"
|
||||||
fi
|
fi
|
||||||
elif [ "$num" = 2 ]; then
|
elif [ "$num" = 2 ]; then
|
||||||
read -p "请输入新的DNS > " dns_fallback
|
read -p "请输入新的DNS > " dns_fallback
|
||||||
dns_fallback=$(echo $dns_fallback | sed 's/|/\,\ /g')
|
dns_fallback=$(echo $dns_fallback | sed 's/|/\,\ /g')
|
||||||
if [ -n "$dns_fallback" ]; then
|
if [ -n "$dns_fallback" ]; then
|
||||||
setconfig dns_fallback \'$dns_fallback\'
|
setconfig dns_fallback \'"$dns_fallback"\'
|
||||||
echo -e "\033[32m设置成功!!!\033[0m"
|
echo -e "\033[32m设置成功!!!\033[0m"
|
||||||
fi
|
fi
|
||||||
elif [ "$num" = 3 ]; then
|
elif [ "$num" = 3 ]; then
|
||||||
|
|
|
@ -741,7 +741,7 @@ if [ -z "$release_new" ];then
|
||||||
update_url=$update_url@$release_new
|
update_url=$update_url@$release_new
|
||||||
fi
|
fi
|
||||||
webget /tmp/clashversion $update_url/bin/version echooff
|
webget /tmp/clashversion $update_url/bin/version echooff
|
||||||
[ "$result" = "200" ] && source /tmp/clashversion || echo -e "\033[31m检查更新失败!\033[0m"
|
[ "$result" = "200" ] && source /tmp/clashversion || echo -e "\033[31m检查更新失败!请检查网络连接或更换安装源!\033[0m"
|
||||||
[ -z "$release_new" ] && release_new=$versionsh
|
[ -z "$release_new" ] && release_new=$versionsh
|
||||||
rm -rf /tmp/clashversion
|
rm -rf /tmp/clashversion
|
||||||
rm -rf /tmp/clashrelease
|
rm -rf /tmp/clashrelease
|
||||||
|
|
Loading…
Reference in New Issue
Block a user