From 96a7400be8b977771ad9156034d84ef0023c71f9 Mon Sep 17 00:00:00 2001 From: hotyue <52734432+hotyue@users.noreply.github.com> Date: Mon, 13 Apr 2026 11:58:59 +0000 Subject: [PATCH] =?UTF-8?q?fix(trust):=20=F0=9F=90=9B=20=E5=87=80=E5=8C=96?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=90=8C=E6=AD=A5=E4=BF=AE=E5=A4=8D=E5=93=88?= =?UTF-8?q?=E5=B8=8C=E7=A7=8D=E5=AD=90=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A1=AE?= =?UTF-8?q?=E4=BF=9D=E6=B4=BB=E4=BD=93=E8=AE=BE=E5=A4=87=E5=94=AF=E4=B8=80?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/mod_trust.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/mod_trust.sh b/core/mod_trust.sh index b792133..0fe3ca4 100755 --- a/core/mod_trust.sh +++ b/core/mod_trust.sh @@ -1,7 +1,7 @@ #!/bin/bash # ========================================================== -# 脚本名称: mod_trust.sh (IP 信用净化模块 V3.1.4 拓扑自适应版) +# 脚本名称: mod_trust.sh (IP 信用净化模块 V3.3.1 拓扑自适应版) # 核心功能: 动态扫描本地 LBS 冷数据,提取权威白名单,执行流量净化 # ========================================================== @@ -59,8 +59,8 @@ if [ -f "$UA_FILE" ]; then TOTAL_UA=${#UA_POOL[@]} if [ "$TOTAL_UA" -gt 0 ]; then - # 以本地锁定的公网 IP (BIND_IP) 为种子计算 CRC32 哈希值 - SEED=$(echo -n "${BIND_IP:-127.0.0.1}" | cksum | awk '{print $1}') + # [v3.3.1修改] 优先使用固化的公网 IP 作为哈希种子,防止 NAT 节点指纹同质化 + SEED=$(echo -n "${PUBLIC_IP:-${BIND_IP:-127.0.0.1}}" | cksum | awk '{print $1}') # 利用确定的种子,在全球 4000 的库中,计算出本机的 3 个绝对专属坐标 IDX1=$(( SEED % TOTAL_UA ))