From a47ae8677607976e0fc9d135ad8766261df693fd Mon Sep 17 00:00:00 2001 From: cmliu Date: Thu, 15 Jan 2026 02:08:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=EF=BC=8C=E5=90=AF=E7=94=A8?= =?UTF-8?q?ECH=E6=97=B6=E5=BC=BA=E5=88=B6=E5=B0=86=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=94=B9=E4=B8=BA1=E5=B0=8F=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index 718eafb..e3e508f 100644 --- a/_worker.js +++ b/_worker.js @@ -1295,7 +1295,7 @@ async function 读取config_JSON(env, hostname, userID, path, 重置配置 = fal }, SUB: null, SUBNAME: "edge" + "tunnel", - SUBUpdateTime: 6, // 订阅更新时间(小时) + SUBUpdateTime: 3, // 订阅更新时间(小时) TOKEN: await MD5MD5(hostname + userID), }, 订阅转换配置: { @@ -1354,6 +1354,7 @@ async function 读取config_JSON(env, hostname, userID, path, 重置配置 = fal const TLS分片参数 = config_JSON.TLS分片 == 'Shadowrocket' ? `&fragment=${encodeURIComponent('1,40-60,30-50,tlshello')}` : config_JSON.TLS分片 == 'Happ' ? `&fragment=${encodeURIComponent('3,1,tlshello')}` : ''; if (!config_JSON.Fingerprint) config_JSON.Fingerprint = "chrome"; if (!config_JSON.ECH) config_JSON.ECH = false; + else config_JSON.优选订阅生成.SUBUpdateTime = 1; // 启用 ECH 时强制将订阅更新时间改为 1 小时 const ECHLINK参数 = config_JSON.ECH ? '&ech=' + encodeURIComponent(await getECH(config_JSON.HOST)) : ''; config_JSON.LINK = `${config_JSON.协议类型}://${userID}@${host}:443?security=tls&type=${config_JSON.传输协议 + ECHLINK参数}&host=${host}&fp=${config_JSON.Fingerprint}&sni=${host}&path=${encodeURIComponent(config_JSON.启用0RTT ? config_JSON.PATH + '?ed=2560' : config_JSON.PATH) + TLS分片参数}&encryption=none${config_JSON.跳过证书验证 ? '&insecure=1&allowInsecure=1' : ''}#${encodeURIComponent(config_JSON.优选订阅生成.SUBNAME)}`; config_JSON.优选订阅生成.TOKEN = await MD5MD5(hostname + userID);