From 723f7e864f17f19e1ec1dc6073924ed6e6a9a04e Mon Sep 17 00:00:00 2001 From: dzdidi Date: Thu, 20 Oct 2022 09:40:50 +0200 Subject: [PATCH] example: use bittorrent router instead of unreachable utorrent Signed-off-by: dzdidi --- bip_dht/examples/debug.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bip_dht/examples/debug.rs b/bip_dht/examples/debug.rs index a1e8d16d44..fbb71eb031 100644 --- a/bip_dht/examples/debug.rs +++ b/bip_dht/examples/debug.rs @@ -75,7 +75,7 @@ fn main() { let hash = InfoHash::from_bytes(b"My Unique Info Hash"); let handshaker = SimpleHandshaker{ filter: HashSet::new(), count: 0 }; - let dht = DhtBuilder::with_router(Router::uTorrent).set_source_addr(SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), 6889))) + let dht = DhtBuilder::with_router(Router::BitTorrent).set_source_addr(SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), 6889))) .set_read_only(false).start_mainline(handshaker).unwrap(); // Spawn a thread to listen to and report events @@ -96,4 +96,4 @@ fn main() { _ => () } } -} \ No newline at end of file +}