mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-28 07:24:12 +00:00
feat: Egern 正式支持 AnyTLS
This commit is contained in:
3 files changed
+10
-12
No files matched your search
@@ -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' &&
|
||||
|
||||
@@ -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' &&
|
||||
|
||||
Reference in new issue
Block a user