mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-03 09:45:54 +00:00
fix: 修复 Egern VLESS flow
This commit is contained in:
2 files changed
+8
-10
No files matched your search
@@ -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