datastore refactor
Some checks failed
Build and Test / wii-sports-club (push) Failing after 20m22s
Build and Test / puyopuyo (push) Failing after 20m41s
Build and Test / minecraft-wiiu (push) Failing after 20m54s
Build and Test / sonic-transformed (push) Failing after 21m17s
Build and Test / mario-tennis (push) Failing after 21m34s
Build and Test / fast-racing-neo (push) Failing after 21m37s
Build and Test / splatoon-testfire (push) Failing after 22m11s
Build and Test / wii-u-chat (push) Failing after 23m6s
Build and Test / splatoon (push) Failing after 23m23s
Build and Test / friends (push) Failing after 3m51s
Build and Test / super-mario-maker (push) Failing after 3m50s
Some checks failed
Build and Test / wii-sports-club (push) Failing after 20m22s
Build and Test / puyopuyo (push) Failing after 20m41s
Build and Test / minecraft-wiiu (push) Failing after 20m54s
Build and Test / sonic-transformed (push) Failing after 21m17s
Build and Test / mario-tennis (push) Failing after 21m34s
Build and Test / fast-racing-neo (push) Failing after 21m37s
Build and Test / splatoon-testfire (push) Failing after 22m11s
Build and Test / wii-u-chat (push) Failing after 23m6s
Build and Test / splatoon (push) Failing after 23m23s
Build and Test / friends (push) Failing after 3m51s
Build and Test / super-mario-maker (push) Failing after 3m50s
This commit is contained in:
parent
115ebf8a3b
commit
3f07e45f08
11 changed files with 1030 additions and 2105 deletions
|
|
@ -22,7 +22,7 @@ impl PRUDPSockAddr {
|
|||
}
|
||||
|
||||
pub fn calculate_connection_signature(&self) -> [u8; 16] {
|
||||
let mut hmac = Md5Hmac::new_from_slice(&[0; 16]).expect("?");
|
||||
let mut hmac = Md5Hmac::new_from_slice(&[0; 16]).expect("incorrect slice size");
|
||||
|
||||
let data = match self.regular_socket_addr.ip() {
|
||||
IpAddr::V4(v) => v.octets().to_vec(),
|
||||
|
|
@ -33,7 +33,7 @@ impl PRUDPSockAddr {
|
|||
hmac.update(&data);
|
||||
let result: [u8; 16] = hmac.finalize().into_bytes()[0..16]
|
||||
.try_into()
|
||||
.expect("fuck");
|
||||
.expect("incorrect result size");
|
||||
result
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue