Skip to content

Commit

Permalink
fix(安全): SSH端口类型
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed May 26, 2024
1 parent de7d50c commit 9eb9a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/http/controllers/safe_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (r *SafeController) GetSshPort(ctx http.Context) http.Response {
return Error(ctx, http.StatusInternalServerError, out)
}

return Success(ctx, out)
return Success(ctx, cast.ToInt(out))
}

// SetSshPort 设置 SSH 端口
Expand Down

0 comments on commit 9eb9a2c

Please sign in to comment.