mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
http_protocol: in AnnounceRequest::write, send uploaded & downloaded
This commit is contained in:
parent
1cdd5bde5b
commit
92b62e73ca
1 changed files with 7 additions and 1 deletions
|
|
@ -34,7 +34,13 @@ impl AnnounceRequest {
|
|||
output.write_all(b"&port=")?;
|
||||
output.write_all(itoa::Buffer::new().format(self.port).as_bytes())?;
|
||||
|
||||
output.write_all(b"&uploaded=0&downloaded=0&left=")?;
|
||||
output.write_all(b"&uploaded=")?;
|
||||
output.write_all(itoa::Buffer::new().format(self.bytes_uploaded).as_bytes())?;
|
||||
|
||||
output.write_all(b"&downloaded=")?;
|
||||
output.write_all(itoa::Buffer::new().format(self.bytes_downloaded).as_bytes())?;
|
||||
|
||||
output.write_all(b"&left=")?;
|
||||
output.write_all(itoa::Buffer::new().format(self.bytes_left).as_bytes())?;
|
||||
|
||||
match self.event {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue