~修复定时任务无法生效以及启动后报错的bug
~修复本地/tmp导入内核时不记录版本号的bug
~修复升级后内核版本号丢失的bug
~调整singbox配置文件本地导入策略,现在只会导入config.json
This commit is contained in:
juewuy 2024-01-11 18:21:50 +08:00
parent ff4fcf736b
commit f9163f949b
6 changed files with 5 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -3,4 +3,5 @@ clashpre_v=2022.11.25
clash_v=v1.7.1
meta_v=v1.18.0
singbox_v=1.7.8
versionsh=1.8.5d
versionsh=1.8.5f
GeoIP_v=20240107

View File

@ -1,7 +1,7 @@
#!/bin/sh
# Copyright (C) Juewuy
version=1.8.5d
version=1.8.5f
setdir(){
dir_avail(){

View File

@ -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