Add sftp.read to activity log

This commit is contained in:
EpicPlayerA10
2024-07-01 22:14:50 +02:00
parent 1d8b383682
commit bac8ad302d
2 changed files with 3 additions and 0 deletions

View File

@@ -87,6 +87,8 @@ func (h *Handler) Fileread(request *sftp.Request) (io.ReaderAt, error) {
}
return nil, sftp.ErrSSHFxNoSuchFile
}
h.events.MustLog(server.ActivitySftpRead, FileAction{Entity: request.Filepath})
return f, nil
}