mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-30 16:38:30 +00:00
feat: Egern 支持根据请求头自动判断或使用 includeUnsupportedProxy 参数或开启 包含官方/商店版不支持的协议 开关
This commit is contained in:
2 files changed
+9
-8
No files matched your search
@@ -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": {
|
||||
|
||||
@@ -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' &&
|
||||
|
||||
Reference in new issue
Block a user