Преглед на файлове

auto update script executed

Toby Chui преди 1 година
родител
ревизия
a72a00e241
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      mod/sshprox/sshprox.go

+ 1 - 0
mod/sshprox/sshprox.go

@@ -140,6 +140,7 @@ func (i *Instance) CreateNewConnection(listenPort int, remoteIpAddr string, remo
 	cmd.Stderr = os.Stderr
 	go func() {
 		cmd.Run()
+		i.Destroy()
 	}()
 	i.tty = cmd
 	i.AssignedPort = listenPort