add initial_peers argument

This commit is contained in:
yggverse 2025-06-07 16:40:46 +03:00
parent 2572f0d32e
commit 491f7ef3c4
3 changed files with 46 additions and 28 deletions

View file

@ -28,6 +28,10 @@ pub struct Argument {
#[arg(long)]
pub torrent_tracker: Vec<String>,
/// Define initial peer(s) to preload the `.torrent` files info
#[arg(long)]
pub initial_peers: Vec<String>,
/// Enable DHT resolver
#[arg(long, default_value_t = false)]
pub enable_dht: bool,