zzzz
This commit is contained in:
@@ -71,6 +71,12 @@ pub async fn perform_handshake(
|
||||
payload.extend_from_slice(&0u32.to_be_bytes());
|
||||
payload.extend_from_slice(&crypto_pair.username.clone().as_bytes());
|
||||
let hello_handshake = construct_message(1, payload, id, crypto_pair);
|
||||
if is_server_handshake {
|
||||
sd.add_message(id, EventType::Hello);
|
||||
} else {
|
||||
sd.add_message(id, EventType::HelloThenRootRequest);
|
||||
}
|
||||
|
||||
match hello_handshake {
|
||||
Some(handshake_message) => {
|
||||
senders.send_dispatch(
|
||||
|
||||
Reference in New Issue
Block a user