Skip to content

Commit 6d498b6

Browse files
committed
example: use bittorrent router instead of unreachable uttorrnet
Signed-off-by: dzdidi <[email protected]>
1 parent b27af50 commit 6d498b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip_dht/examples/debug.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn main() {
7575
let hash = InfoHash::from_bytes(b"My Unique Info Hash");
7676

7777
let handshaker = SimpleHandshaker{ filter: HashSet::new(), count: 0 };
78-
let dht = DhtBuilder::with_router(Router::uTorrent).set_source_addr(SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), 6889)))
78+
let dht = DhtBuilder::with_router(Router::BitTorrent).set_source_addr(SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::new(0, 0, 0, 0), 6889)))
7979
.set_read_only(false).start_mainline(handshaker).unwrap();
8080

8181
// Spawn a thread to listen to and report events
@@ -96,4 +96,4 @@ fn main() {
9696
_ => ()
9797
}
9898
}
99-
}
99+
}

0 commit comments

Comments
 (0)