Merge pull request #336 from cooip-jm/patch-1

处理grpc-opts为 {} 的情况
This commit is contained in:
xream authored and GitHub committed 2024-07-02 21:03:30 +08:00
commit 50e4dbc53e
1 file changed
+7
+7
View File
@@ -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;