Update cloudflare.js

This commit is contained in:
赵璟 2024-10-22 17:04:48 +08:00 committed by GitHub
parent ad7cf356b4
commit b8f5864601
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,9 +3,7 @@ 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'
]
async function handleRequest(request) { async function handleRequest(request) {
// 随机选择一个后端服务器 // 随机选择一个后端服务器
const backend = backends[Math.floor(Math.random() * backends.length)] const backend = backends[Math.floor(Math.random() * backends.length)]