mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
bittorrent_udp: request_to_bytes: fix bad writing of zero after IP
This commit is contained in:
parent
9fbcd60dff
commit
43b31e5e96
1 changed files with 0 additions and 1 deletions
|
|
@ -43,7 +43,6 @@ pub fn request_to_bytes(
|
||||||
|ip| ip.octets()
|
|ip| ip.octets()
|
||||||
)).unwrap();
|
)).unwrap();
|
||||||
|
|
||||||
bytes.write_u32::<NetworkEndian>(0).unwrap(); // IP
|
|
||||||
bytes.write_u32::<NetworkEndian>(r.key.0).unwrap();
|
bytes.write_u32::<NetworkEndian>(r.key.0).unwrap();
|
||||||
bytes.write_i32::<NetworkEndian>(r.peers_wanted.0).unwrap();
|
bytes.write_i32::<NetworkEndian>(r.peers_wanted.0).unwrap();
|
||||||
bytes.write_u16::<NetworkEndian>(r.port.0).unwrap();
|
bytes.write_u16::<NetworkEndian>(r.port.0).unwrap();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue