From 850c4635ce382e2717214c3bffe1f9714665b9c7 Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 18 Jan 2026 08:58:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Egern=20=E6=94=AF=E6=8C=81=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E8=AF=B7=E6=B1=82=E5=A4=B4=E8=87=AA=E5=8A=A8=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=88=96=E4=BD=BF=E7=94=A8=20`includeUnsupportedProxy?= =?UTF-8?q?`=20=E5=8F=82=E6=95=B0=E6=88=96=E5=BC=80=E5=90=AF=20`=E5=8C=85?= =?UTF-8?q?=E5=90=AB=E5=AE=98=E6=96=B9/=E5=95=86=E5=BA=97=E7=89=88?= =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81=E7=9A=84=E5=8D=8F=E8=AE=AE`=20?= =?UTF-8?q?=E5=BC=80=E5=85=B3?= 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 | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/backend/package.json b/backend/package.json index f491212e..afd948bd 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.21.5", + "version": "2.21.6", "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 a332e98b..cf0f38de 100644 --- a/backend/src/utils/user-agent.js +++ b/backend/src/utils/user-agent.js @@ -75,6 +75,13 @@ export function shouldIncludeUnsupportedProxy(platform, ua) { ) { return true; } + if ( + platform === 'Egern' && + target === 'Egern' && + ua.match(/build\/(\d+)/i)?.[1] >= 698 + ) { + return true; + } // // if ( // // platform === 'Stash' && // // target === 'Stash' && @@ -82,13 +89,7 @@ export function shouldIncludeUnsupportedProxy(platform, ua) { // // ) { // // return true; // // } - // if ( - // platform === 'Egern' && - // target === 'Egern' && - // gte(version, '2.7.0') - // ) { - // return true; - // } + // // Loon 的 UA 不规范, version 取出来是 build // // if ( // // platform === 'Loon' &&