Merge pull request #828 from cmliu/beta2.0

fix: 添加对特定访问路径的处理以支持Cloudflare位置请求
This commit is contained in:
CMLiussss
2025-11-18 14:43:09 +08:00
committed by GitHub

View File

@@ -297,7 +297,7 @@ export default {
return new Response(订阅内容, { status: 200, headers: responseHeaders }); return new Response(订阅内容, { status: 200, headers: responseHeaders });
} }
return new Response('无效的订阅TOKEN', { status: 403 }); return new Response('无效的订阅TOKEN', { status: 403 });
} } else if (访问路径 === 'locations') return fetch(new Request('https://speed.cloudflare.com/locations'));
} else if (管理员密码) {// ws代理 } else if (管理员密码) {// ws代理
await 反代参数获取(request); await 反代参数获取(request);
return await 处理WS请求(request, userID); return await 处理WS请求(request, userID);