From c854614efcce7ed15ebdc6ce8e338626b674a916 Mon Sep 17 00:00:00 2001 From: xream Date: Tue, 25 Mar 2025 17:49:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=20User-Agent=20?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/utils/user-agent.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index 160dd76..6889985 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.4", + "version": "2.19.5", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/utils/user-agent.js b/backend/src/utils/user-agent.js index a1e10c5..0349bae 100644 --- a/backend/src/utils/user-agent.js +++ b/backend/src/utils/user-agent.js @@ -47,7 +47,7 @@ export function getPlatformFromUserAgent({ ua, UA, accept }) { return 'Clash'; } else if (ua.indexOf('v2ray') !== -1) { return 'V2Ray'; - } else if (ua.indexOf('sing-box') !== -1) { + } else if (ua.indexOf('sing-box') !== -1 || ua.indexOf('singbox') !== -1) { return 'sing-box'; } else if (accept.indexOf('application/json') === 0) { return 'JSON';