Add support for BTv2 magnet links

This commit is contained in:
Joshua Abraham 2023-12-24 16:53:02 -06:00
parent 1157866152
commit 0836b651a7
21 changed files with 236 additions and 157 deletions

View file

@ -1,4 +1,4 @@
use crate::id20::Id20;
use crate::hash_id::Id20;
#[derive(Debug)]
pub enum AzureusStyleKind {
@ -55,5 +55,5 @@ pub fn generate_peer_id() -> Id20 {
peer_id[..8].copy_from_slice(b"-rQ0001-");
Id20(peer_id)
Id20::new(peer_id)
}