mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
udp: consistently use NonZeroU16 for announce request port
This commit is contained in:
parent
b4e27903dc
commit
3513b714b4
8 changed files with 18 additions and 14 deletions
|
|
@ -6,6 +6,7 @@ use std::{
|
|||
fs::File,
|
||||
io::Write,
|
||||
net::{Ipv4Addr, SocketAddr, SocketAddrV4, UdpSocket},
|
||||
num::NonZeroU16,
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
|
|
@ -78,7 +79,7 @@ fn test_access_list(
|
|||
&socket,
|
||||
tracker_addr,
|
||||
connection_id,
|
||||
1,
|
||||
NonZeroU16::new(1).unwrap(),
|
||||
info_hash_fail,
|
||||
10,
|
||||
false,
|
||||
|
|
@ -95,7 +96,7 @@ fn test_access_list(
|
|||
&socket,
|
||||
tracker_addr,
|
||||
connection_id,
|
||||
1,
|
||||
NonZeroU16::new(1).unwrap(),
|
||||
info_hash_success,
|
||||
10,
|
||||
false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue