feat: Egern 支持根据请求头自动判断或使用 includeUnsupportedProxy 参数或开启 包含官方/商店版不支持的协议 开关

This commit is contained in:
xream committed 2026-01-18 08:58:10 +08:00
1 parent f1839c293a
commit 850c4635ce
2 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -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": {
+8 -7
View File
@@ -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' &&