Accepting TCP connections + publishing = works. Still yet to pass it to the live torrent

This commit is contained in:
Igor Katson 2023-12-05 16:35:16 +00:00
parent 71d49a88b6
commit 41fb3bfd37
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 93 additions and 11 deletions

View file

@ -1,6 +1,6 @@
use std::{
cmp::Reverse,
net::SocketAddr,
net::{SocketAddr, SocketAddrV4},
sync::{
atomic::{AtomicU16, Ordering},
Arc,
@ -1059,7 +1059,8 @@ pub struct DhtConfig {
pub bootstrap_addrs: Option<Vec<String>>,
pub routing_table: Option<RoutingTable>,
pub listen_addr: Option<SocketAddr>,
pub(crate) peer_store: Option<PeerStore>,
pub announce_addr: Option<SocketAddr>,
pub peer_store: Option<PeerStore>,
}
impl DhtState {