feat: 默认查询流量信息的 User-Agent 从 clash 改为 clash.meta/v1.19.16

This commit is contained in:
xream committed 2025-11-21 19:14:25 +08:00
1 parent b90d080c43
commit d9f4157fe5
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.20.39",
"version": "2.20.40",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {
+1 -1
View File
@@ -64,7 +64,7 @@ export async function getFlowHeaders(
if ($.env.isNode) {
proxy = proxy || eval('process.env.SUB_STORE_BACKEND_DEFAULT_PROXY');
}
const userAgent = ua || defaultFlowUserAgent || 'clash';
const userAgent = ua || defaultFlowUserAgent || 'clash.meta/v1.19.16';
const requestTimeout = timeout || defaultTimeout || 8000;
const id = hex_md5(userAgent + url);
const cached = headersResourceCache.get(id);