mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 17:04:08 +08:00
Merge pull request #828 from cmliu/beta2.0
fix: 添加对特定访问路径的处理以支持Cloudflare位置请求
This commit is contained in:
@@ -297,7 +297,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 (管理员密码) {// ws代理
|
||||
await 反代参数获取(request);
|
||||
return await 处理WS请求(request, userID);
|
||||
|
||||
Reference in New Issue
Block a user