复活失败,正在重试之域名白名单

This commit is contained in:
develop202
2026-01-15 21:49:04 +08:00
parent 4f64e1a390
commit ff435c2468
9 changed files with 6231 additions and 5072 deletions

View File

@@ -23,12 +23,12 @@ function getLocalIPv(ver = 4) {
return ips
}
async function fetchUrl(url, opts = {}) {
async function fetchUrl(url, opts = {}, timeout = 6000) {
const controller = new AbortController();
const timeoutId = setTimeout(() => {
controller.abort()
printRed("请求超时")
}, 6000);
}, timeout);
opts["signal"] = controller.signal
const res = await fetch(url, opts)
.then(r => r.json())