From 249355c274ee85183bee30857e5d1973fcb1cbe2 Mon Sep 17 00:00:00 2001 From: Ansarac <45335466+Ansarac@users.noreply.github.com> Date: Fri, 1 Mar 2024 23:58:41 +0800 Subject: [PATCH 1/2] Resolve issue with restoring the dashboard configuration Within the detection for the dashboard service start-up, if the "test" variable is not empty (restart scenario), the program will skip the loop and fail to restore the dashboard settings. On my local device, it would be more reliable to wait another 1s before the further operation. --- scripts/start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/start.sh b/scripts/start.sh index bbdaeda..7049258 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1433,12 +1433,14 @@ web_save(){ #最小化保存面板节点选择 web_restore(){ #还原面板选择 getconfig #设置循环检测面板端口以判定服务启动是否成功 - i=1 + test="" + i=1 while [ -z "$test" -a "$i" -lt 20 ];do sleep 2 test=$(get_save http://127.0.0.1:${db_port}/configs | grep -o port) i=$((i+1)) done + sleep 1 [ -n "$test" ] && { #发送节点选择数据 [ -s ${CRASHDIR}/configs/web_save ] && { From 1c69a9d304289cb820333c35277ce7f14139155a Mon Sep 17 00:00:00 2001 From: juewuy <61367819+juewuy@users.noreply.github.com> Date: Sun, 3 Mar 2024 22:39:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/version b/bin/version index c371832..ceb679c 100644 --- a/bin/version +++ b/bin/version @@ -4,5 +4,5 @@ clash_v=v1.7.1 meta_v=v1.18.0 singboxp_v=1.8.5-73d97226 singbox_v=1.8.5 -versionsh=1.9.0pre13 +versionsh=1.9.0pre14 GeoIP_v=20240302