Skip to content

Commit

Permalink
fix: create tcp route failure (#2003)
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail authored Nov 12, 2024
1 parent c3eebdd commit 98dfbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controller/apigateway/api_gateway_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (g Struct) CreateTCPRoute(w http.ResponseWriter, r *http.Request) {
httputil.ReturnBcodeError(r, w, bcode.ErrPortExists)
return
}
httputil.ReturnSuccess(r, w, e.Spec.Ports[0].NodePort)
httputil.ReturnSuccess(r, w, get.Spec.Ports[0].NodePort)
return
}

Expand Down

0 comments on commit 98dfbba

Please sign in to comment.