This commit is contained in:
ACoolName 2024-05-27 21:23:26 +03:00
parent 3af19abc74
commit 214013d445

View File

@ -547,6 +547,7 @@ func (con Connection) AttachServer(ctx *gin.Context) {
time.Sleep(500) time.Sleep(500)
hijacked, err = con.dockerClient.ContainerAttach(context.TODO(), containers[0].ID, container.AttachOptions{Stream: true, Stdin: true, Stdout: true, Stderr: true, Logs: false}) 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 { if err != nil {
log.Printf("Failed to re-attach container %s", err)
stop = true stop = true
break break
} }