mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
Update cloudflare.js
This commit is contained in:
parent
9ab4593949
commit
4e8f6d6e63
1 changed files with 3 additions and 5 deletions
|
@ -4,15 +4,13 @@ addEventListener('fetch', event => {
|
||||||
|
|
||||||
// This data source from: https://raw.githubusercontent.com/Websoft9/doc.websoft9.com/refs/heads/main/docs/reference/_include/dockerhub-proxy.md
|
// This data source from: https://raw.githubusercontent.com/Websoft9/doc.websoft9.com/refs/heads/main/docs/reference/_include/dockerhub-proxy.md
|
||||||
const backends = [
|
const backends = [
|
||||||
'https://docker.rainbond.cc',
|
'https://docker.rainbond.cc'
|
||||||
'https://docker.1panel.dev',
|
|
||||||
'https://docker.fxxk.dedyn.io',
|
|
||||||
'https://a.ussh.net',
|
|
||||||
'https://docker.zhai.cm'
|
|
||||||
]
|
]
|
||||||
var test = "test"
|
var test = "test"
|
||||||
|
|
||||||
async function handleRequest(request) {
|
async function handleRequest(request) {
|
||||||
|
//打印
|
||||||
|
print(test)
|
||||||
// 随机选择一个后端服务器
|
// 随机选择一个后端服务器
|
||||||
const backend = backends[Math.floor(Math.random() * backends.length)]
|
const backend = backends[Math.floor(Math.random() * backends.length)]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue