From 35fd394368de8819dc8d75d3b450e93ba50dff7c Mon Sep 17 00:00:00 2001 From: cmliu Date: Wed, 10 Dec 2025 11:55:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E4=BB=A5=E5=8C=85=E5=90=ABReferer=E5=A4=B4=E9=83=A8=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=BC=BAlocations=E8=B7=AF=E5=BE=84=E7=9A=84=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index 3306bb2..5895d74 100644 --- a/_worker.js +++ b/_worker.js @@ -301,7 +301,7 @@ export default { return new Response(订阅内容, { status: 200, headers: responseHeaders }); } return new Response('无效的订阅TOKEN', { status: 403 }); - } else if (访问路径 === 'locations') return fetch(new Request('https://speed.cloudflare.com/locations')); + } else if (访问路径 === 'locations') return fetch(new Request('https://speed.cloudflare.com/locations', { headers: { 'Referer': 'https://speed.cloudflare.com/' } })); } else if (管理员密码) {// ws代理 await 反代参数获取(request); return await 处理WS请求(request, userID);