Add handling for cgui for ask handshake message
This commit is contained in:
parent
40e74e6bd3
commit
ad2b0d3e4a
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user