v1.8.6c
~增加8-1-1命令等待时长 ~自动同步ntp的任务当检测到singbox内核时不会运行 ~修复singbox内核启动时geosite-cn相关报错 ~修复singbox内核无法正确还原面板节点的问题 ~修复卸载时报错source未找到 ~修复升级或覆盖安装时界面卡死的bug
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4,4 +4,4 @@ clash_v=v1.7.1
|
|||||||
meta_v=v1.18.0
|
meta_v=v1.18.0
|
||||||
singbox_v=1.8.0
|
singbox_v=1.8.0
|
||||||
GeoIP_v=20240107
|
GeoIP_v=20240107
|
||||||
versionsh=1.8.6b
|
versionsh=1.8.6c
|
||||||
|
|||||||
@@ -1665,7 +1665,7 @@ update(){
|
|||||||
update
|
update
|
||||||
|
|
||||||
elif [ "$num" = 9 ]; then
|
elif [ "$num" = 9 ]; then
|
||||||
$0 -u
|
crash -u
|
||||||
exit
|
exit
|
||||||
|
|
||||||
elif [ "$num" = 99 ]; then
|
elif [ "$num" = 99 ]; then
|
||||||
@@ -1863,7 +1863,7 @@ testcommand(){
|
|||||||
$CRASHDIR/start.sh stop
|
$CRASHDIR/start.sh stop
|
||||||
if [ "$crashcore" = singbox ] ;then
|
if [ "$crashcore" = singbox ] ;then
|
||||||
$BINDIR/CrashCore run -D $BINDIR -c $TMPDIR/config.json &
|
$BINDIR/CrashCore run -D $BINDIR -c $TMPDIR/config.json &
|
||||||
{ sleep 2 ; kill $! &>/dev/null & }
|
{ sleep 4 ; kill $! &>/dev/null & }
|
||||||
wait
|
wait
|
||||||
else
|
else
|
||||||
$BINDIR/CrashCore -t -d $BINDIR -f $TMPDIR/config.yaml
|
$BINDIR/CrashCore -t -d $BINDIR -f $TMPDIR/config.yaml
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) Juewuy
|
# Copyright (C) Juewuy
|
||||||
|
|
||||||
version=1.8.6b
|
version=1.8.6c
|
||||||
|
|
||||||
setdir(){
|
setdir(){
|
||||||
dir_avail(){
|
dir_avail(){
|
||||||
|
|||||||
@@ -586,7 +586,7 @@ EOF
|
|||||||
"outbound": ["any"],
|
"outbound": ["any"],
|
||||||
"server": "dns_resolver"
|
"server": "dns_resolver"
|
||||||
}, {
|
}, {
|
||||||
"geosite": ["geolocation-cn"],
|
"geosite": ["cn"],
|
||||||
"query_type": [ "A", "AAAA" ],
|
"query_type": [ "A", "AAAA" ],
|
||||||
"server": "$direct_dns"
|
"server": "$direct_dns"
|
||||||
}, {
|
}, {
|
||||||
@@ -1305,11 +1305,14 @@ stop_firewall(){ #还原防火墙配置
|
|||||||
web_save(){ #最小化保存面板节点选择
|
web_save(){ #最小化保存面板节点选择
|
||||||
getconfig
|
getconfig
|
||||||
#使用get_save获取面板节点设置
|
#使用get_save获取面板节点设置
|
||||||
get_save http://127.0.0.1:${db_port}/proxies | awk -F ':\\{"' '{for(i=1;i<=NF;i++) print $i}' | grep -aE '(^all|^alive)".*"Selector"' > ${TMPDIR}/shellcrash_web_check_$USER
|
get_save http://127.0.0.1:${db_port}/proxies | awk -F ':\\{"' '{for(i=1;i<=NF;i++) print $i}' | grep -aE '"Selector"' | grep -aoE '"name":.*"now":".*",' > ${TMPDIR}/shellcrash_web_check_$USER
|
||||||
while read line ;do
|
while read line ;do
|
||||||
def=$(echo $line | awk -F "[[,]" '{print $2}')
|
def=$(echo $line | grep -oE '"all".*",' | awk -F "[:\"]" '{print $5}' )
|
||||||
now=$(echo $line | grep -oE '"now".*",' | sed 's/"now"://g' | sed 's/"type":.*//g' | sed 's/,//g')
|
now=$(echo $line | grep -oE '"now".*",' | awk -F "[:\"]" '{print $5}' )
|
||||||
[ "$def" != "$now" ] && echo $line | grep -oE '"name".*"now".*",' | sed 's/"name"://g' | sed 's/"now"://g' | sed 's/"type":.*//g' | sed 's/"//g' >> ${TMPDIR}/shellcrash_web_save_$USER
|
[ "$def" != "$now" ] && {
|
||||||
|
name=$(echo $line | grep -oE '"name".*",' | awk -F "[:\"]" '{print $5}' )
|
||||||
|
echo "${name},${now}" >> ${TMPDIR}/shellcrash_web_save_$USER
|
||||||
|
}
|
||||||
done < ${TMPDIR}/shellcrash_web_check_$USER
|
done < ${TMPDIR}/shellcrash_web_check_$USER
|
||||||
rm -rf ${TMPDIR}/shellcrash_web_check_$USER
|
rm -rf ${TMPDIR}/shellcrash_web_check_$USER
|
||||||
#对比文件,如果有变动且不为空则写入磁盘,否则清除缓存
|
#对比文件,如果有变动且不为空则写入磁盘,否则清除缓存
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ reset_firewall(){ #重设透明路由防火墙
|
|||||||
${CRASHDIR}/start.sh afstart
|
${CRASHDIR}/start.sh afstart
|
||||||
}
|
}
|
||||||
ntp(){
|
ntp(){
|
||||||
ckcmd ntpd && ntpd -n -q -p 203.107.6.88 &>/dev/null || exit 0 &
|
[ "$crashcore" != singbox ] && ckcmd ntpd && ntpd -n -q -p 203.107.6.88 &>/dev/null || exit 0 &
|
||||||
}
|
}
|
||||||
#任务工具
|
#任务工具
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user