feat: Egern 正式支持 AnyTLS

This commit is contained in:
xream committed 2026-03-03 13:51:41 +08:00
1 parent 5e8100ecb0
commit e921ebff9b
3 files changed
+10 -12

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.21.39",
"version": "2.21.40",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {
@@ -2,7 +2,7 @@ import { isPresent } from './utils';
export default function Egern_Producer() {
const type = 'ALL';
const produce = (proxies, type, opts = {}) => {
const produce = (proxies, type) => {
// https://egernapp.com/zh-CN/docs/configuration/proxies
const list = proxies
.filter((proxy) => {
@@ -18,9 +18,7 @@ export default function Egern_Producer() {
'vmess',
'tuic',
'wireguard',
...(opts['include-unsupported-proxy']
? ['anytls']
: []),
'anytls',
].includes(proxy.type) ||
(proxy.type === 'ss' &&
((proxy.plugin === 'obfs' &&
+7 -7
View File
@@ -75,13 +75,13 @@ export function shouldIncludeUnsupportedProxy(platform, headers) {
) {
return true;
}
if (
platform === 'Egern' &&
target === 'Egern' &&
ua.match(/build\/(\d+)/i)?.[1] >= 718
) {
return true;
}
// if (
// platform === 'Egern' &&
// target === 'Egern' &&
// ua.match(/build\/(\d+)/i)?.[1] >= 718
// ) {
// return true;
// }
// // if (
// // platform === 'Stash' &&
// // target === 'Stash' &&