Skip to content

Commit d9f4157

Browse files
committed
feat: 默认查询流量信息的 User-Agentclash 改为 clash.meta/v1.19.16
1 parent b90d080 commit d9f4157

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.20.39",
3+
"version": "2.20.40",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/utils/flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export async function getFlowHeaders(
6464
if ($.env.isNode) {
6565
proxy = proxy || eval('process.env.SUB_STORE_BACKEND_DEFAULT_PROXY');
6666
}
67-
const userAgent = ua || defaultFlowUserAgent || 'clash';
67+
const userAgent = ua || defaultFlowUserAgent || 'clash.meta/v1.19.16';
6868
const requestTimeout = timeout || defaultTimeout || 8000;
6969
const id = hex_md5(userAgent + url);
7070
const cached = headersResourceCache.get(id);

0 commit comments

Comments
 (0)