mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
aquatic_http: error response on invalid request; rename response types
This commit is contained in:
parent
60faf2da3f
commit
6b7ce0e211
3 changed files with 38 additions and 12 deletions
|
|
@ -156,7 +156,7 @@ pub fn handle_announce_requests(
|
|||
ResponsePeer::from_peer
|
||||
);
|
||||
|
||||
let response = Response::AnnounceSuccess(AnnounceResponseSuccess {
|
||||
let response = Response::Announce(AnnounceResponse {
|
||||
complete: torrent_data.num_seeders,
|
||||
incomplete: torrent_data.num_leechers,
|
||||
announce_interval: config.protocol.peer_announce_interval,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue