From b03f493d5e066867243eb0be063e4ddee546ef35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Sun, 23 Feb 2025 17:02:35 +0800 Subject: [PATCH] Update workers_keep.js --- workers_keep.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();