v1.8.5f
~修复定时任务无法生效以及启动后报错的bug ~修复本地/tmp导入内核时不记录版本号的bug ~修复升级后内核版本号丢失的bug ~调整singbox配置文件本地导入策略,现在只会导入config.json
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) Juewuy
|
||||
|
||||
version=1.8.5d
|
||||
version=1.8.5f
|
||||
|
||||
setdir(){
|
||||
dir_avail(){
|
||||
|
||||
@@ -673,9 +673,10 @@ EOF
|
||||
#分割配置文件获得outbounds.json及route.json
|
||||
cat $core_config | sed -n '/"outbounds":/,/"route":/{/"route":/d; p}' > ${TMPDIR}/outbounds.json
|
||||
cat $core_config | sed -n '/"route":/,/"experimental":/{/"experimental":/d; p}' > ${TMPDIR}/route.json
|
||||
#清理route.json中的process_name规则
|
||||
#清理route.json中的process_name规则以及"auto_detect_interface"
|
||||
sed -i '/"process_name": \[/,/],$/d' ${TMPDIR}/route.json
|
||||
sed -i '/"process_name": "[^"]*",/d' ${TMPDIR}/route.json
|
||||
sed -i 's/"auto_detect_interface": true/"auto_detect_interface": false/g' ${TMPDIR}/route.json
|
||||
#跳过本地tls证书验证
|
||||
if [ -z "$skip_cert" -o "$skip_cert" = "已开启" ];then
|
||||
sed -i 's/"insecure": false/"insecure": true/' ${TMPDIR}/outbounds.json
|
||||
|
||||
Reference in New Issue
Block a user