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

@@ -63,7 +63,7 @@ export async function getFlowHeaders(
proxy = proxy || eval('process.env.SUB_STORE_BACKEND_DEFAULT_PROXY');
}
const userAgent = ua || defaultFlowUserAgent || 'clash';
const requestTimeout = timeout || defaultTimeout;
const requestTimeout = timeout || defaultTimeout || 8000;
const id = hex_md5(userAgent + url);
const cached = headersResourceCache.get(id);
let flowInfo;