mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
v0.9.9
~新增保守方式启动,适配更多设备(小米3HD,以及其他linux系统) ~新增进阶功能菜单 ~修复了geoip数据库偶尔丢失的bug(感谢Pan Peter同学提交bug!) ~增加了另一种本地面板的安装方式 ~UI优化 ~bug修复
This commit is contained in:
parent
ed6ec52e34
commit
a30c958a6f
Binary file not shown.
|
@ -428,7 +428,7 @@ echo -e "\033[32m打开管理面板的速度更快且更稳定"
|
|||
echo -e "\033[33m需要占用约500kb的本地空间\033[0m"
|
||||
echo -----------------------------------------------
|
||||
echo " 1 在/www/clash目录安装(http://$host/clash,可能安装失败!)"
|
||||
echo " 2 在$clashdir/ui目录安装(http://$host:9999/ui,推荐!)"
|
||||
echo " 2 在$clashdir/ui目录安装(http://$host:9999/ui,安装后需重启clash)"
|
||||
echo -----------------------------------------------
|
||||
echo " 0 返回上级菜单!"
|
||||
read -p "请输入对应数字 > " num
|
||||
|
@ -437,10 +437,10 @@ if [ -z "$num" ];then
|
|||
update
|
||||
elif [ "$num" = '1' ]; then
|
||||
dbdir=/www/clash
|
||||
hostdir=':9999/ui'
|
||||
hostdir='/clash\033[0;36m访问面板'
|
||||
elif [ "$num" = '2' ]; then
|
||||
dbdir=$clashdir/ui
|
||||
hostdir='/clash'
|
||||
hostdir=':9999/ui\033[0;36m访问面板(需重启clash服务!)'
|
||||
else
|
||||
update
|
||||
fi
|
||||
|
@ -479,7 +479,7 @@ fi
|
|||
#
|
||||
echo -e "\033[32m面板安装成功!\033[0m"
|
||||
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
echo -e "\033[36m请使用\033[32;4mhttp://$host$hostdir\033[0;36m访问面板\033[0m"
|
||||
echo -e "\033[36m请使用\033[32;4mhttp://$host$hostdir\033[0m"
|
||||
rm -rf /tmp/clashdb.tar.gz
|
||||
update
|
||||
fi
|
||||
|
|
|
@ -33,7 +33,7 @@ else
|
|||
ipv6='ipv6: false'
|
||||
fi
|
||||
external='external-controller: 0.0.0.0:9999'
|
||||
if [ -f $clashdir/ui ];then
|
||||
if [ -d $clashdir/ui ];then
|
||||
external_ui='external-ui: ui'
|
||||
else
|
||||
external_ui='external-ui:'
|
||||
|
@ -70,7 +70,7 @@ exper='experimental: {ignore-resolve-fail: true, interface-name: en0}'
|
|||
sed -i "10a$exper" $clashdir/config.yaml
|
||||
#跳过本地tls证书验证
|
||||
if [ "$skip_cert" != "未开启" ];then
|
||||
sed -i "10,99s/sni: \S*/\1skip-cert-verify: true}/" $clashdir/config.yaml #跳过trojan本地证书验证
|
||||
sed -i "10,99s/sni: */\1skip-cert-verify: true}/" $clashdir/config.yaml #跳过trojan本地证书验证
|
||||
sed -i '10,99s/}}/}, skip-cert-verify: true}/' $clashdir/config.yaml #跳过v2+ssl本地证书验证
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user