mirror of
https://github.com/fscarmen/sing-box.git
synced 2026-08-10 17:55:16 +08:00
Fix: downgrade sing-box to v1.12.0-beta.6 due to critical bug in beta.7
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
1.12.0-beta.6
|
||||||
+3
-3
@@ -639,7 +639,7 @@ check_install() {
|
|||||||
if [ "${STATUS[0]}" = "$(text 26)" ] && [ ! -s ${WORK_DIR}/sing-box ]; then
|
if [ "${STATUS[0]}" = "$(text 26)" ] && [ ! -s ${WORK_DIR}/sing-box ]; then
|
||||||
{
|
{
|
||||||
# FORCE_VERSION 用于在 sing-box 某个主程序出现 bug 时,强制为指定版本,以防止运行出错
|
# 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
|
if grep -q '.' <<< "$FORCE_VERSION"; then
|
||||||
local ONLINE="$FORCE_VERSION"
|
local ONLINE="$FORCE_VERSION"
|
||||||
else
|
else
|
||||||
@@ -1062,7 +1062,7 @@ check_dependencies() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 检测 Linux 系统的依赖,升级库并重新安装依赖
|
# 检测 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")
|
local DEPS_INSTALL=("wget" "tar" "iproute2" "bash" "openssl")
|
||||||
[ "$SYSTEM" != 'Alpine' ] && DEPS_CHECK+=("systemctl") && DEPS_INSTALL+=("systemctl")
|
[ "$SYSTEM" != 'Alpine' ] && DEPS_CHECK+=("systemctl") && DEPS_INSTALL+=("systemctl")
|
||||||
for g in "${!DEPS_CHECK[@]}"; do
|
for g in "${!DEPS_CHECK[@]}"; do
|
||||||
@@ -3251,7 +3251,7 @@ uninstall() {
|
|||||||
# Sing-box 的最新版本
|
# Sing-box 的最新版本
|
||||||
version() {
|
version() {
|
||||||
# FORCE_VERSION 用于在 sing-box 某个主程序出现 bug 时,强制为指定版本,以防止运行出错
|
# 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
|
if grep -q '.' <<< "$FORCE_VERSION"; then
|
||||||
local ONLINE="$FORCE_VERSION"
|
local ONLINE="$FORCE_VERSION"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user