From 01439b93f128b8c8ad72913e270214aef0e51300 Mon Sep 17 00:00:00 2001 From: lwch Date: Tue, 19 Oct 2021 17:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/client/connect.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/client/connect.go b/code/client/connect.go index 4ba9a7b..cbc6f9b 100644 --- a/code/client/connect.go +++ b/code/client/connect.go @@ -85,8 +85,7 @@ func vncCreate(mgr *tunnel.Mgr, conn *pool.Conn, msg *network.Msg) { }) mgr.Add(tn) } - lk := vnc.NewLink(tn.(*vnc.VNC), msg.GetLinkId(), msg.GetFrom(), conn) - lk.SetTargetIdx(msg.GetFromIdx()) + lk := tn.NewLink(msg.GetLinkId(), msg.GetFrom(), msg.GetFromIdx(), nil, conn).(*vnc.Link) err := lk.Fork() if err != nil { logging.Error("create vnc failed: %v", err)