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' &&