mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
udp load test: improve config defaults, add announce_peers_wanted field
This commit is contained in:
parent
1df1014798
commit
bbe09bd0df
2 changed files with 12 additions and 9 deletions
|
|
@ -160,8 +160,8 @@ fn create_announce_request(
|
|||
bytes_left,
|
||||
event: event.into(),
|
||||
ip_address: Ipv4AddrBytes([0; 4]),
|
||||
key: PeerKey::new(12345),
|
||||
peers_wanted: NumberOfPeers::new(100),
|
||||
key: PeerKey::new(0),
|
||||
peers_wanted: NumberOfPeers::new(config.requests.announce_peers_wanted),
|
||||
port: torrent_peer.port,
|
||||
})
|
||||
.into()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue