validate id
This commit is contained in:
@@ -114,6 +114,7 @@ fn perform_handshake() -> Result<u128> {
|
|||||||
|
|
||||||
assert_eq!(buf[0], 2);
|
assert_eq!(buf[0], 2);
|
||||||
assert_eq!(number_of_bytes, 92);
|
assert_eq!(number_of_bytes, 92);
|
||||||
|
assert_eq!(buf[8..12], id);
|
||||||
|
|
||||||
Ok(end.duration_since(start).as_nanos())
|
Ok(end.duration_since(start).as_nanos())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user