Fix: downgrade sing-box to v1.12.0-beta.6 due to critical bug in beta.7

This commit is contained in:
fscarmen
2025-04-29 07:15:40 +00:00
parent 6e54af3170
commit 3b5a945238
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
1.12.0-beta.6
+3 -3
View File
@@ -639,7 +639,7 @@ check_install() {
if [ "${STATUS[0]}" = "$(text 26)" ] && [ ! -s ${WORK_DIR}/sing-box ]; then
{
# FORCE_VERSION 用于在 sing-box 某个主程序出现 bug 时,强制为指定版本,以防止运行出错
local FORCE_VERSION=$(wget --no-check-certificate --tries=2 --timeout=3 -qO- ${GH_PROXY}https://raw.githubusercontent.com/fscarmen/sing-box/refs/heads/main/force_version | sed 's/^[vV]//g')
local FORCE_VERSION=$(wget --no-check-certificate --tries=2 --timeout=3 -qO- ${GH_PROXY}https://raw.githubusercontent.com/fscarmen/sing-box/refs/heads/main/force_version | sed 's/^[vV]//g; s/\r//g')
if grep -q '.' <<< "$FORCE_VERSION"; then
local ONLINE="$FORCE_VERSION"
else
@@ -1062,7 +1062,7 @@ check_dependencies() {
fi
# 检测 Linux 系统的依赖,升级库并重新安装依赖
local DEPS_CHECK=("wget" "tar" "ss" "bash" "openssl")
local DEPS_CHECK=("wget" "tar" "ip" "bash" "openssl")
local DEPS_INSTALL=("wget" "tar" "iproute2" "bash" "openssl")
[ "$SYSTEM" != 'Alpine' ] && DEPS_CHECK+=("systemctl") && DEPS_INSTALL+=("systemctl")
for g in "${!DEPS_CHECK[@]}"; do
@@ -3251,7 +3251,7 @@ uninstall() {
# Sing-box 的最新版本
version() {
# FORCE_VERSION 用于在 sing-box 某个主程序出现 bug 时,强制为指定版本,以防止运行出错
local FORCE_VERSION=$(wget --no-check-certificate --tries=2 --timeout=3 -qO- ${GH_PROXY}https://raw.githubusercontent.com/fscarmen/sing-box/refs/heads/main/force_version | sed 's/^[vV]//g')
local FORCE_VERSION=$(wget --no-check-certificate --tries=2 --timeout=3 -qO- ${GH_PROXY}https://raw.githubusercontent.com/fscarmen/sing-box/refs/heads/main/force_version | sed 's/^[vV]//g; s/\r//g')
if grep -q '.' <<< "$FORCE_VERSION"; then
local ONLINE="$FORCE_VERSION"
else