Update workers_keep.js

This commit is contained in:
甬哥侃侃侃ygkkk
2025-02-23 17:02:35 +08:00
committed by GitHub
parent 888e62d071
commit b03f493d5e
+2 -2
View File
@@ -1,8 +1,8 @@
addEventListener('scheduled', event => event.waitUntil(handleScheduled()));
// 配合甬哥的bash <(curl -Ls https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/serv00.sh)脚本,生成保活网页
// 每个保活网页之间空格,网页前带http://
// 每个保活网页之间空格或者,或者,间隔开,网页前带http://
const urlString = 'http://保活网页1 http://保活网页2 http://保活网页3';
const urls = urlString.split(' ');
const urls = urlString.split(/[\s,]+/);
const TIMEOUT = 5000;
async function fetchWithTimeout(url) {
const controller = new AbortController();