This commit is contained in:
Minh Vu 2026-07-26 17:48:36 +08:00 committed by GitHub
commit 97885baa3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,8 @@ func runVNCVM(cmd *cobra.Command, args []string) (err error) {
}
go func() {
defer conn.Close()
wsConn, err := client.VMs().PortForward(cmd.Context(), name, vncPort, wait)
if err != nil {
fmt.Printf("failed to forward port: %v\n", err)

View File

@ -56,6 +56,8 @@ func runVNCWorker(cmd *cobra.Command, args []string) (err error) {
}
go func() {
defer conn.Close()
wsConn, err := client.Workers().PortForward(cmd.Context(), name, vncPort)
if err != nil {
fmt.Printf("failed to forward port: %v\n", err)