mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-27 23:13:43 +00:00
fix: 修复 Egern VLESS flow
This commit is contained in:
2 files changed
+8
-10
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sub-store",
|
||||
"version": "2.21.27",
|
||||
"version": "2.21.28",
|
||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||
"main": "src/main.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -64,8 +64,12 @@ export default function Egern_Producer() {
|
||||
!['http', 'ws', 'tcp'].includes(proxy.network) &&
|
||||
proxy.network) ||
|
||||
(proxy.type === 'vless' &&
|
||||
!['http', 'ws', 'tcp'].includes(proxy.network) &&
|
||||
proxy.network) ||
|
||||
((!['http', 'ws', 'tcp'].includes(proxy.network) &&
|
||||
proxy.network) ||
|
||||
(typeof proxy.flow !== 'undefined' &&
|
||||
!['xtls-rprx-vision', ''].includes(
|
||||
proxy.flow,
|
||||
)))) ||
|
||||
(proxy.type === 'tuic' &&
|
||||
proxy.token &&
|
||||
proxy.token.length !== 0)
|
||||
@@ -353,14 +357,8 @@ export default function Egern_Producer() {
|
||||
reality,
|
||||
},
|
||||
};
|
||||
if (typeof proxy.flow !== 'undefined') {
|
||||
if (!['xtls-rprx-vision'].includes(proxy.flow)) {
|
||||
throw new Error(
|
||||
`VLESS flow(${proxy.flow}) is not supported`,
|
||||
);
|
||||
}
|
||||
}
|
||||
flow = proxy.flow;
|
||||
if (flow === '') flow = undefined;
|
||||
}
|
||||
proxy = {
|
||||
type: 'vless',
|
||||
|
||||
Reference in new issue
Block a user