Update cloudflare.js

This commit is contained in:
赵璟 2024-10-22 16:54:59 +08:00 committed by GitHub
parent 9ab4593949
commit 4e8f6d6e63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)]