Skip to content

Commit 0d1e9dd

Browse files
authored
Merge pull request cmliu#866 from cmliu/beta2.0
Beta2.0
2 parents 432b49d + 35fd394 commit 0d1e9dd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export default {
301301
return new Response(订阅内容, { status: 200, headers: responseHeaders });
302302
}
303303
return new Response('无效的订阅TOKEN', { status: 403 });
304-
} else if (访问路径 === 'locations') return fetch(new Request('https://speed.cloudflare.com/locations'));
304+
} else if (访问路径 === 'locations') return fetch(new Request('https://speed.cloudflare.com/locations', { headers: { 'Referer': 'https://speed.cloudflare.com/' } }));
305305
} else if (管理员密码) {// ws代理
306306
await 反代参数获取(request);
307307
return await 处理WS请求(request, userID);

wrangler.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name = "v20251104"
22
main = "_worker.js"
33
compatibility_date = "2025-11-04"
4-
keep_vars = true
4+
keep_vars = true
5+
6+
#[[kv_namespaces]]
7+
#binding = "KV" #KV绑定名默认不可修改
8+
#id = "" #KV数据库id

0 commit comments

Comments
 (0)