Skip to content

Commit

Permalink
fix: check comment for update
Browse files Browse the repository at this point in the history
  • Loading branch information
VaalaCat committed Apr 28, 2024
1 parent 17ebb42 commit b80559f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion biz/master/client/update_tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ func UpdateFrpcHander(c context.Context, req *pb.UpdateFRPCRequest) (*pb.UpdateF

cli.ConfigContent = rawCliConf
cli.ServerID = serverID
cli.Comment = req.GetComment()
if req.Comment != nil {
cli.Comment = req.GetComment()
}

if err := dao.UpdateClient(userInfo, cli); err != nil {
logrus.WithError(err).Errorf("cannot update client, id: [%s]", clientID)
Expand Down

0 comments on commit b80559f

Please sign in to comment.