mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
feat: 处理 reality-opts 为 {} 的情况
This commit is contained in:
@@ -408,6 +408,13 @@ function lastParse(proxy) {
|
||||
delete proxy.ports;
|
||||
}
|
||||
if (['vless'].includes(proxy.type)) {
|
||||
// 删除 reality-opts: {}
|
||||
if (
|
||||
proxy['reality-opts'] &&
|
||||
Object.keys(proxy['reality-opts']).length === 0
|
||||
) {
|
||||
delete proxy['reality-opts'];
|
||||
}
|
||||
// 非 reality, 空 flow 没有意义
|
||||
if (!proxy['reality-opts'] && !proxy.flow) {
|
||||
delete proxy.flow;
|
||||
|
||||
Reference in New Issue
Block a user