From 455f98fafd304225a216d24440ffa93f828961ee Mon Sep 17 00:00:00 2001 From: hotyue <52734432+hotyue@users.noreply.github.com> Date: Tue, 14 Apr 2026 06:17:20 +0000 Subject: [PATCH] =?UTF-8?q?fix(report):=20=F0=9F=90=9B=20=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E9=98=B2=E6=92=9E=E7=94=B2=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E6=AF=8F=E6=97=A5=E6=88=98=E6=8A=A5=E8=BA=AB?= =?UTF-8?q?=E4=BB=BD=E4=BB=A3=E5=8F=B7=E4=B8=8E=E5=88=9D=E5=A7=8B=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E7=BB=9D=E5=AF=B9=E7=BB=9F=E4=B8=80=20(v3.3.2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/tg_report.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/tg_report.sh b/core/tg_report.sh index 313be44d..e49a4653 100755 --- a/core/tg_report.sh +++ b/core/tg_report.sh @@ -1,7 +1,7 @@ #!/bin/bash # ========================================================== -# 脚本名称: tg_report.sh (Telegram 每日战报模块 V3.3.1 动态拼装版) +# 脚本名称: tg_report.sh (Telegram 每日战报模块 V3.3.2 动态拼装版) # 核心功能: 适配 Feature Flag 架构,按需展示 Google/Trust 独立统计数据 # ========================================================== @@ -19,7 +19,9 @@ if [ -z "$TG_TOKEN" ] || [ -z "$CHAT_ID" ]; then fi # 2. 节点元数据抓取 (v3.2.2 协议自适应与多级容灾版) -NODE_NAME=$(hostname | cut -c 1-15) +# [v3.3.2 修复: 引入 IP 哈希防同名覆盖机制] +IP_HASH=$(echo "${PUBLIC_IP:-127.0.0.1}" | md5sum | cut -c 1-4 | tr 'a-z' 'A-Z') +NODE_NAME="$(hostname | cut -c 1-10)_${IP_HASH}" # --- [防线 1: 底层路由锁定与协议自适应] --- CURL_BIND_OPT=""