This commit is contained in:
ACoolName 2024-05-27 21:19:22 +03:00
parent f32054f78c
commit 3af19abc74

View File

@ -544,6 +544,7 @@ func (con Connection) AttachServer(ctx *gin.Context) {
}
count, err := hijacked.Reader.Read(data)
if err != nil {
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})
if err != nil {
stop = true