mirror of
https://github.com/veops/oneterm.git
synced 2025-10-23 23:33:17 +08:00
feat(api): redis
This commit is contained in:
@@ -204,7 +204,7 @@ func (c *Controller) GetSessionReplay(ctx *gin.Context) {
|
||||
ctx.AbortWithError(http.StatusInternalServerError, &ApiError{Code: ErrInternal, Data: map[string]any{"err": err}})
|
||||
}
|
||||
filename := sessionId
|
||||
if session.IsSsh() {
|
||||
if !session.IsGuacd() {
|
||||
filename += ".cast"
|
||||
}
|
||||
ctx.FileAttachment(filepath.Join("/replay", filename), filename)
|
||||
|
Reference in New Issue
Block a user