mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 04:39:03 +08:00
feat: 处理 reality-opts 为 {} 的情况
This commit is contained in:
parent
f524920c13
commit
9d29fc8a09
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.345",
|
"version": "2.14.346",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -408,6 +408,13 @@ function lastParse(proxy) {
|
|||||||
delete proxy.ports;
|
delete proxy.ports;
|
||||||
}
|
}
|
||||||
if (['vless'].includes(proxy.type)) {
|
if (['vless'].includes(proxy.type)) {
|
||||||
|
// 删除 reality-opts: {}
|
||||||
|
if (
|
||||||
|
proxy['reality-opts'] &&
|
||||||
|
Object.keys(proxy['reality-opts']).length === 0
|
||||||
|
) {
|
||||||
|
delete proxy['reality-opts'];
|
||||||
|
}
|
||||||
// 非 reality, 空 flow 没有意义
|
// 非 reality, 空 flow 没有意义
|
||||||
if (!proxy['reality-opts'] && !proxy.flow) {
|
if (!proxy['reality-opts'] && !proxy.flow) {
|
||||||
delete proxy.flow;
|
delete proxy.flow;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user