mirror of
https://github.com/hotyue/IP-Sentinel.git
synced 2026-07-10 23:21:23 +08:00
chore: 临时将全局拉取源切换至 dev/v4.0.0-sonar,准备进行深海声呐实弹测试
This commit is contained in:
@@ -401,7 +401,7 @@ class AgentHandler(http.server.BaseHTTPRequestHandler):
|
|||||||
# [修复] 逃逸 Systemd Cgroup,并引入 bash -n 语法树校验防砖机制
|
# [修复] 逃逸 Systemd Cgroup,并引入 bash -n 语法树校验防砖机制
|
||||||
import shutil
|
import shutil
|
||||||
import base64
|
import base64
|
||||||
repo_url = "https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
repo_url = "https://raw.githubusercontent.com/hotyue/IP-Sentinel/dev/v4.0.0-sonar"
|
||||||
|
|
||||||
# 动态构建报错回执文本 (第一层 Base64 隔离换行与特殊字符)
|
# 动态构建报错回执文本 (第一层 Base64 隔离换行与特殊字符)
|
||||||
err_msg = f"❌ **OTA 熔断告警**\n📍 节点: `{config_mem.get('NODE_ALIAS', '未知')}`\n⚠️ 原因: 脚本语法校验(bash -n)未通过,下载可能不完整。\n🚀 状态: 升级已取消,节点安全。"
|
err_msg = f"❌ **OTA 熔断告警**\n📍 节点: `{config_mem.get('NODE_ALIAS', '未知')}`\n⚠️ 原因: 脚本语法校验(bash -n)未通过,下载可能不完整。\n🚀 状态: 升级已取消,节点安全。"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ if [ "$EUID" -ne 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 你的 GitHub 仓库 Raw 数据直链前缀
|
# 你的 GitHub 仓库 Raw 数据直链前缀
|
||||||
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
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/v3.6.2-rc"
|
# REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc"
|
||||||
INSTALL_DIR="/opt/ip_sentinel"
|
INSTALL_DIR="/opt/ip_sentinel"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ INSTALL_DIR="/opt/ip_sentinel"
|
|||||||
CONFIG_FILE="${INSTALL_DIR}/config.conf"
|
CONFIG_FILE="${INSTALL_DIR}/config.conf"
|
||||||
UA_FILE="${INSTALL_DIR}/data/user_agents.txt"
|
UA_FILE="${INSTALL_DIR}/data/user_agents.txt"
|
||||||
# 你的 GitHub 仓库 Raw 数据直链前缀
|
# 你的 GitHub 仓库 Raw 数据直链前缀
|
||||||
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
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/v3.6.2-rc"
|
# REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc"
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ fi
|
|||||||
LOCAL_VER="${AGENT_VERSION:-未知}"
|
LOCAL_VER="${AGENT_VERSION:-未知}"
|
||||||
|
|
||||||
# 极轻量级探针: 抓取 GitHub 云端的 version.txt (超时 3 秒,KV解析法)
|
# 极轻量级探针: 抓取 GitHub 云端的 version.txt (超时 3 秒,KV解析法)
|
||||||
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/dev/v4.0.0-sonar"
|
||||||
REMOTE_VER=$(curl -s -m 3 "${REPO_RAW_URL}/version.txt" | grep "^AGENT_VERSION=" | cut -d'=' -f2 | tr -d '[:space:]')
|
REMOTE_VER=$(curl -s -m 3 "${REPO_RAW_URL}/version.txt" | grep "^AGENT_VERSION=" | cut -d'=' -f2 | tr -d '[:space:]')
|
||||||
|
|
||||||
# 构建底部引擎状态块
|
# 构建底部引擎状态块
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ CONFIG_FILE="${INSTALL_DIR}/config.conf"
|
|||||||
UA_TIME_FILE="${INSTALL_DIR}/core/.ua_last_update"
|
UA_TIME_FILE="${INSTALL_DIR}/core/.ua_last_update"
|
||||||
|
|
||||||
# GitHub 仓库 Raw 数据直链前缀
|
# GitHub 仓库 Raw 数据直链前缀
|
||||||
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
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/v3.6.2-rc"
|
# REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc"
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ if [ "$EUID" -ne 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 你的 GitHub 仓库 Raw 数据直链前缀
|
# 你的 GitHub 仓库 Raw 数据直链前缀
|
||||||
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
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/v3.6.2-rc"
|
# REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc"
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ CONF="/opt/ip_sentinel_master/master.conf"
|
|||||||
source "$CONF"
|
source "$CONF"
|
||||||
|
|
||||||
# [核心: 运行态版本继承与云通信地址]
|
# [核心: 运行态版本继承与云通信地址]
|
||||||
REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/main"
|
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/v3.6.2-rc"
|
# REPO_RAW_URL="https://raw.githubusercontent.com/hotyue/IP-Sentinel/v3.6.2-rc"
|
||||||
# MASTER_VERSION 已经在上方的 source "$CONF" 中被载入
|
# MASTER_VERSION 已经在上方的 source "$CONF" 中被载入
|
||||||
|
|||||||
Reference in New Issue
Block a user