Add handling for cgui for ask handshake message

This commit is contained in:
qowevisa 2024-06-09 07:39:09 +03:00
parent 40e74e6bd3
commit ad2b0d3e4a

View File

@ -138,6 +138,11 @@ func readFromWebSocket(conn net.Conn, ws *websocket.Conn) {
log.Printf("client: readWS: sending data to server: %v", answ) log.Printf("client: readWS: sending data to server: %v", answ)
conn.Write(answ) conn.Write(answ)
continue continue
case com.ID_CLIENT_ASK_CLIENT_HANDSHAKE:
if !r.IsRegistered {
continue
}
msg.FromID = r.ID
} }
encodedMsg, err := msg.Bytes() encodedMsg, err := msg.Bytes()
if err != nil { if err != nil {