feat: 默认超时 8000ms

This commit is contained in:
xream
2024-11-24 12:13:52 +08:00
parent d4c419745e
commit 514414587b
5 changed files with 6 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ export default async function download(
proxy = proxy || eval('process.env.SUB_STORE_BACKEND_DEFAULT_PROXY');
}
const userAgent = ua || defaultUserAgent || 'clash.meta';
const requestTimeout = timeout || defaultTimeout;
const requestTimeout = timeout || defaultTimeout || 8000;
const id = hex_md5(userAgent + url);
if ($arguments?.cacheKey === true) {