~配置文件覆写代码优化
~在线配置生成后端部分地址替换
~新手引导增加自动配置ipv6路由
~屏蔽QUIC功能增加ipv6支持
~修复others.yaml不会被正确读取的bug
~修复局域网过滤功能不会提示重启的bug
This commit is contained in:
juewuy
2023-07-21 20:39:10 +08:00
parent 17872a97b2
commit 29b94a19d7
6 changed files with 62 additions and 43 deletions

View File

@@ -10,6 +10,7 @@ DIR=$(cat /etc/profile | grep clashdir | awk -F "\"" '{print $2}')
[ -z "$DIR" ] && DIR=$(cat ~/.bashrc | grep clashdir | awk -F "\"" '{print $2}')
BINDIR=$(cat $DIR/mark | grep bindir | awk -F "=" '{print $2}')
[ -z "$BINDIR" ] && BINDIR=$DIR
TMPDIR=/tmp/clash_$USER
start_service() {
#检测必须文件
@@ -20,7 +21,7 @@ start_service() {
procd_set_param respawn
procd_set_param stderr 0
procd_set_param stdout 0
procd_set_param command $BINDIR/clash -d $BINDIR
procd_set_param command $BINDIR/clash -d $BINDIR -f $TMPDIR/config.yaml
procd_close_instance
#其他设置
$DIR/start.sh afstart
@@ -33,7 +34,7 @@ start() {
$DIR/start.sh bfstart
if [ "$?" = "0" ];then
#创建后台进程
service_start $BINDIR/clash -d $BINDIR
service_start $BINDIR/clash -d $BINDIR -f $TMPDIR/config.yaml
#其他设置
$DIR/start.sh afstart
#设置守护进程