mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 02:59:01 +08:00
处理grpc-opts为 {} 的情况
该字段仅影响sing-box内核,对mihomo无影响
This commit is contained in:
parent
9d29fc8a09
commit
4bfdef17ee
@ -415,6 +415,13 @@ function lastParse(proxy) {
|
||||
) {
|
||||
delete proxy['reality-opts'];
|
||||
}
|
||||
// 删除 grpc-opts: {}
|
||||
if (
|
||||
proxy['grpc-opts'] &&
|
||||
Object.keys(proxy['grpc-opts']).length === 0
|
||||
) {
|
||||
delete proxy['grpc-opts'];
|
||||
}
|
||||
// 非 reality, 空 flow 没有意义
|
||||
if (!proxy['reality-opts'] && !proxy.flow) {
|
||||
delete proxy.flow;
|
||||
|
Loading…
x
Reference in New Issue
Block a user