diff --git a/workers_keep.js b/workers_keep.js index c2b3d9b..d4035d2 100644 --- a/workers_keep.js +++ b/workers_keep.js @@ -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();