Add redirection to all messages from client to client

This commit is contained in:
qowevisa 2024-06-10 07:54:24 +03:00
parent b60ebc637f
commit 245e8986a6

View File

@ -211,7 +211,14 @@ func handleClient(conn net.Conn) {
} }
conn.Write(answ) conn.Write(answ)
// REDIRECTED STUFF // REDIRECTED STUFF
case com.ID_CLIENT_ASK_CLIENT_HANDSHAKE: case com.ID_CLIENT_ASK_CLIENT_HANDSHAKE,
com.ID_CLIENT_APPROVE_CLIENT_HANDSHAKE,
com.ID_CLIENT_DECLINE_CLIENT_HANDSHAKE,
com.ID_CLIENT_SEND_CLIENT_ECDH_PUBKEY,
com.ID_CLIENT_SEND_CLIENT_CBES_SPECS,
com.ID_CLIENT_SEND_CLIENT_MKLG_FINGERPRINT,
com.ID_CLIENT_DECLINE_CLIENT_MKLG_FINGERPRINT,
com.ID_CLIENT_SEND_CLIENT_MESSAGE:
toConn, err := connCenter.GetConn(msg.ToID) toConn, err := connCenter.GetConn(msg.ToID)
if err != nil { if err != nil {
log.Printf("ERROR: connCenter: GetConn: %v\n", err) log.Printf("ERROR: connCenter: GetConn: %v\n", err)