fix port binding

This commit is contained in:
Maple 2026-03-24 15:48:56 +01:00
commit 785341e883
43 changed files with 1543 additions and 431 deletions

View file

@ -100,7 +100,7 @@ impl<C: Crypto> Server<C> {
};
/* we leave the sequence id as is for now as it defaults to 0 */
*packet.checksum_mut().expect("packet malformed in creation") =
packet.checksum_mut().expect("packet malformed in creation") =
self.crypto.calculate_checksum(
packet
.checksummed_data()
@ -434,7 +434,7 @@ impl<C: Crypto> Server<C> {
info!("len: {}", packet.0.len());
let addr = PRUDPSockAddr::new(addr, header.source);
let addr = PRUDPSockAddr::new(SocketAddr::V4(addr), header.source);
if let Some(conn) = self.get_connection(addr).await {
let mut inner = conn.inner.lock().await;