Skip to content

Commit

Permalink
Merge pull request #336 from cooip-jm/patch-1
Browse files Browse the repository at this point in the history
 处理grpc-opts为 {} 的情况
  • Loading branch information
xream authored Jul 2, 2024
2 parents 9d29fc8 + 4bfdef1 commit 9558b63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/src/core/proxy-utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9558b63

Please sign in to comment.