no logs on second attach

This commit is contained in:
ACoolName 2024-05-27 21:15:46 +03:00
parent e0bbfc9a24
commit f32054f78c

View File

@ -544,7 +544,7 @@ func (con Connection) AttachServer(ctx *gin.Context) {
}
count, err := hijacked.Reader.Read(data)
if err != nil {
hijacked, err = con.dockerClient.ContainerAttach(context.TODO(), containers[0].ID, container.AttachOptions{Stream: true, Stdin: true, Stdout: true, Stderr: true, Logs: true})
hijacked, err = con.dockerClient.ContainerAttach(context.TODO(), containers[0].ID, container.AttachOptions{Stream: true, Stdin: true, Stdout: true, Stderr: true, Logs: false})
if err != nil {
stop = true
break