From 035e8070aa45eda243961c5096367238f35bd126 Mon Sep 17 00:00:00 2001 From: cmliu Date: Fri, 21 Aug 2026 22:21:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86VLESS=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E8=A7=A3=E7=A0=81=E5=99=A8=E9=87=8D=E5=91=BD=E5=90=8D=E4=B8=BA?= =?UTF-8?q?=E9=AD=8F=E7=83=88=E6=80=9D=E6=96=87=E6=9C=AC=E8=A7=A3=E7=A0=81?= =?UTF-8?q?=E5=99=A8=E4=BB=A5=E6=8F=90=E9=AB=98=E4=BB=A3=E7=A0=81=E5=8F=AF?= =?UTF-8?q?=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_worker.js b/_worker.js index a4b7f1455e..551bdc740a 100644 --- a/_worker.js +++ b/_worker.js @@ -816,7 +816,7 @@ function 开始TCP连接世代(remoteConnWrapper) { } async function 读取叉HTTP首包(reader, token) { - const decoder = VLESS文本解码器; + const decoder = 魏烈思文本解码器; const 尝试解析魏烈思首包 = (data) => { const length = data.byteLength; @@ -1334,7 +1334,7 @@ async function 处理WS请求(request, yourUUID, url, 反代上下文 = {}) { while (WS本地测速请求缓存.byteLength) { const headerEnd = 查找HTTP请求头结尾(WS本地测速请求缓存); if (headerEnd === -1) return; - const headerText = VLESS文本解码器.decode(WS本地测速请求缓存.subarray(0, headerEnd)); + const headerText = 魏烈思文本解码器.decode(WS本地测速请求缓存.subarray(0, headerEnd)); const contentLengthMatch = headerText.match(/(?:^|\r\n)content-length\s*:\s*(\d+)/i); const contentLength = contentLengthMatch ? Number(contentLengthMatch[1]) : 0; const requestLength = headerEnd + contentLength; @@ -1922,7 +1922,7 @@ function 解析木马请求(buffer, passwordPlainText) { } const UUID字节缓存 = new Map(); -const VLESS文本解码器 = new TextDecoder(); +const 魏烈思文本解码器 = new TextDecoder(); function 读取十六进制半字节(code) { if (code >= 48 && code <= 57) return code - 48; @@ -1991,7 +1991,7 @@ function 解析魏烈思请求(chunk, token) { addrLen = data[addrValIdx]; addrValIdx += 1; if (length < addrValIdx + addrLen) return { hasError: true, message: 'Invalid domain data' }; - hostname = VLESS文本解码器.decode(data.subarray(addrValIdx, addrValIdx + addrLen)); + hostname = 魏烈思文本解码器.decode(data.subarray(addrValIdx, addrValIdx + addrLen)); break; case 3: addrLen = 16;