From b1ecbd4f9a74f0d68dfe51727748b8b7d6638b07 Mon Sep 17 00:00:00 2001 From: hotyue <52734432+hotyue@users.noreply.github.com> Date: Fri, 24 Apr 2026 03:25:32 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=81=A2=E5=A4=8D=E6=8B=89=E5=8F=96?= =?UTF-8?q?=E6=BA=90=E4=B8=BA=20main=20=E5=B9=B6=E7=A7=BB=E9=99=A4=20Beta?= =?UTF-8?q?=20=E6=A0=87=E8=AF=86=EF=BC=8C=E5=87=86=E5=A4=87=E5=8F=91?= =?UTF-8?q?=E5=B8=83=20v4.0.0=20=E6=AD=A3=E5=BC=8F=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/agent_daemon.sh | 2 +- core/install.sh | 2 +- core/mod_trust.sh | 2 +- core/tg_report.sh | 2 +- core/updater.sh | 2 +- master/install_master.sh | 2 +- master/tg_master.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/agent_daemon.sh b/core/agent_daemon.sh index 30e9553..cf031a2 100755 --- a/core/agent_daemon.sh +++ b/core/agent_daemon.sh @@ -401,7 +401,7 @@ class AgentHandler(http.server.BaseHTTPRequestHandler): # [修复] 逃逸 Systemd Cgroup,并引入 bash -n 语法树校验防砖机制 import shutil import base64 - repo_url = "https://raw.githubusercontent.com/hotyue/IP-Sentinel/dev/v4.0.0-sonar" + repo_url = "https://raw.githubusercontent.com/hotyue/IP-Sentinel/main" # 动态构建报错回执文本 (第一层 Base64 隔离换行与特殊字符) err_msg = f"❌ **OTA 熔断告警**\n📍 节点: `{config_mem.get('NODE_ALIAS', '未知')}`\n⚠️ 原因: 脚本语法校验(bash -n)未通过,下载可能不完整。\n🚀 状态: 升级已取消,节点安全。" diff --git a/core/install.sh b/core/install.sh index e5e38a4..6ccd550 100755 --- a/core/install.sh +++ b/core/install.sh @@ -15,7 +15,7 @@ if [ "$EUID" -ne 0 ]; then fi # 你的 GitHub 仓库 Raw 数据直链前缀 -REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/dev/v4.0.0-sonar" +REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main" # 临时改为开发地址用于测试 # REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc" INSTALL_DIR="/opt/ip_sentinel" diff --git a/core/mod_trust.sh b/core/mod_trust.sh index b19280d..b7ea134 100755 --- a/core/mod_trust.sh +++ b/core/mod_trust.sh @@ -9,7 +9,7 @@ INSTALL_DIR="/opt/ip_sentinel" CONFIG_FILE="${INSTALL_DIR}/config.conf" UA_FILE="${INSTALL_DIR}/data/user_agents.txt" # 你的 GitHub 仓库 Raw 数据直链前缀 -REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/dev/v4.0.0-sonar" +REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main" # 临时改为私库地址用于测试 # REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc" diff --git a/core/tg_report.sh b/core/tg_report.sh index 991c1a6..036be73 100755 --- a/core/tg_report.sh +++ b/core/tg_report.sh @@ -176,7 +176,7 @@ fi LOCAL_VER="${AGENT_VERSION:-未知}" # 极轻量级探针: 抓取 GitHub 云端的 version.txt (超时 3 秒,KV解析法) -REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/dev/v4.0.0-sonar" +REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main" REMOTE_VER=$(curl -s -m 3 "${REPO_RAW_URL}/version.txt" | grep "^AGENT_VERSION=" | cut -d'=' -f2 | tr -d '[:space:]') # 构建底部引擎状态块 diff --git a/core/updater.sh b/core/updater.sh index 74a8440..b2afdb3 100755 --- a/core/updater.sh +++ b/core/updater.sh @@ -10,7 +10,7 @@ CONFIG_FILE="${INSTALL_DIR}/config.conf" UA_TIME_FILE="${INSTALL_DIR}/core/.ua_last_update" # GitHub 仓库 Raw 数据直链前缀 -REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/dev/v4.0.0-sonar" +REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main" # 临时改为开发地址用于测试 # REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc" diff --git a/master/install_master.sh b/master/install_master.sh index b228c66..bfd27ed 100755 --- a/master/install_master.sh +++ b/master/install_master.sh @@ -15,7 +15,7 @@ if [ "$EUID" -ne 0 ]; then fi # 你的 GitHub 仓库 Raw 数据直链前缀 -REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/dev/v4.0.0-sonar" +REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main" # 临时改为开发地址用于测试 # REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc" diff --git a/master/tg_master.sh b/master/tg_master.sh index 1bd3111..324e464 100755 --- a/master/tg_master.sh +++ b/master/tg_master.sh @@ -10,7 +10,7 @@ CONF="/opt/ip_sentinel_master/master.conf" source "$CONF" # [核心: 运行态版本继承与云通信地址] -REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/dev/v4.0.0-sonar" +REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main" # 临时改为开发地址用于测试 # REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc" # MASTER_VERSION 已经在上方的 source "$CONF" 中被载入