Skip to content

Commit

Permalink
Add tutorial for workers and change proxy site to maimai jp version
Browse files Browse the repository at this point in the history
  • Loading branch information
Misaka-blog committed Jul 29, 2023
1 parent 5f67755 commit 3d5e197
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## 部署教程

- Workers 教程地址:待发布
- Workers 教程地址:https://blog.misaka.rest/2023/07/29/cf-wkrs-vless/
- Pages 教程地址:待发布

## 鸣谢项目
Expand Down
4 changes: 2 additions & 2 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ export default {
}
default:
// return new Response('Not found', { status: 404 });
// For any other path, reverse proxy to 'www.fmprc.gov.cn' and return the original response
url.hostname = Math.random() < 0.5 ? 'www.gov.cn' : 'www.fmprc.gov.cn';
// For any other path, reverse proxy to 'maimai.sega.jp' and return the original response
url.hostname = Math.random() < 0.5 ? 'maimai.sega.com' : 'maimai.sega.jp';
url.protocol = 'https:';
request = new Request(url, request);
return await fetch(request);
Expand Down

0 comments on commit 3d5e197

Please sign in to comment.