From 61f80b82c743c6798a100458ca6219d6ec679fa3 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 12 Jun 2024 22:47:40 +0300 Subject: [PATCH] Yep. Fixed --- cmd/cgui/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/cgui/main.go b/cmd/cgui/main.go index 6667dcd..8d2ced6 100644 --- a/cmd/cgui/main.go +++ b/cmd/cgui/main.go @@ -110,7 +110,7 @@ func readFromServer(conn net.Conn, ws *websocket.Conn) { msg.Data = tmpLink.Data // Crypto stuff case com.ID_CLIENT_SEND_CLIENT_ECDH_PUBKEY: - t, err := tlepCenter.GetTLEP(msg.ToID) + t, err := tlepCenter.GetTLEP(msg.FromID) if err != nil { log.Printf("ERROR: tlep: GetTLEP: %v\n", err) continue @@ -122,7 +122,7 @@ func readFromServer(conn net.Conn, ws *websocket.Conn) { } msg.Data = []byte{} case com.ID_CLIENT_SEND_CLIENT_CBES_SPECS: - t, err := tlepCenter.GetTLEP(msg.ToID) + t, err := tlepCenter.GetTLEP(msg.FromID) if err != nil { log.Printf("ERROR: tlep: GetTLEP: %v\n", err) continue @@ -139,7 +139,7 @@ func readFromServer(conn net.Conn, ws *websocket.Conn) { } // message case com.ID_CLIENT_SEND_CLIENT_MESSAGE: - t, err := tlepCenter.GetTLEP(msg.ToID) + t, err := tlepCenter.GetTLEP(msg.FromID) if err != nil { log.Printf("ERROR: tlep: GetTLEP: %v\n", err) continue