diff --git a/code/client/tunnel/vnc/core/capture.go b/code/client/tunnel/vnc/core/capture.go index 22dc85a..4e779d2 100644 --- a/code/client/tunnel/vnc/core/capture.go +++ b/code/client/tunnel/vnc/core/capture.go @@ -30,5 +30,6 @@ func captureOK(conn *websocket.Conn, bits, width, height int, data []byte) { Data: data, }, } + data, _ = proto.Marshal(&msg) conn.WriteMessage(websocket.BinaryMessage, data) } diff --git a/code/client/tunnel/vnc/core/process_windows.go b/code/client/tunnel/vnc/core/process_windows.go index 8c61ee3..bb33d5a 100644 --- a/code/client/tunnel/vnc/core/process_windows.go +++ b/code/client/tunnel/vnc/core/process_windows.go @@ -103,7 +103,9 @@ func createWorker(confDir string, tk windows.Token) (*Process, error) { startup.Flags = windows.STARTF_USESHOWWINDOW cmd := windows.StringToUTF16Ptr(dir + fmt.Sprintf(" -conf %s -action vnc.worker -vport %d", confDir, port)) if tk == 0 { - err = windows.CreateProcess(nil, cmd, nil, nil, false, windows.DETACHED_PROCESS, nil, nil, &startup, &process) + // only for debug + startup.Flags = 0 + err = windows.CreateProcess(nil, cmd, nil, nil, false, windows.CREATE_NEW_CONSOLE, nil, nil, &startup, &process) } else { err = windows.CreateProcessAsUser(tk, nil, cmd, nil, nil, false, windows.DETACHED_PROCESS, nil, nil, &startup, &process) }