removed resize logic
This commit is contained in:
parent
c8ac178bea
commit
5b5a084939
@ -602,15 +602,16 @@ func (con Connection) AttachServer(ctx *gin.Context) {
|
||||
stop = true
|
||||
|
||||
case "resize":
|
||||
err2 := con.dockerClient.ContainerResize(context.TODO(), containers[0].ID, container.ResizeOptions{Height: Command.Arguments[1].(uint), Width: Command.Arguments[0].(uint)})
|
||||
if err2 != nil {
|
||||
log.Printf("Failed to resize container to %dx%d: %s", Command.Arguments[0].(uint), Command.Arguments[1].(uint), err)
|
||||
}
|
||||
log.Printf("Fake resize %dx%d", Command.Arguments[0].(uint), Command.Arguments[1].(uint))
|
||||
// err2 := con.dockerClient.ContainerResize(context.TODO(), containers[0].ID, container.ResizeOptions{Height: Command.Arguments[1].(uint), Width: Command.Arguments[0].(uint)})
|
||||
// if err2 != nil {
|
||||
// log.Printf("Failed to resize container to %dx%d: %s", Command.Arguments[0].(uint), Command.Arguments[1].(uint), err)
|
||||
// }
|
||||
|
||||
hijacked, err2 = con.dockerClient.ContainerAttach(context.TODO(), containers[0].ID, container.AttachOptions{Stream: true, Stdin: true, Stdout: true, Stderr: true})
|
||||
if err2 != nil {
|
||||
log.Printf("Failed to reattach container %s", err)
|
||||
}
|
||||
// hijacked, err2 = con.dockerClient.ContainerAttach(context.TODO(), containers[0].ID, container.AttachOptions{Stream: true, Stdin: true, Stdout: true, Stderr: true})
|
||||
// if err2 != nil {
|
||||
// log.Printf("Failed to reattach container %s", err)
|
||||
// }
|
||||
|
||||
}
|
||||
case data := <-containerRead:
|
||||
|
Loading…
x
Reference in New Issue
Block a user