mirror of
https://github.com/YGGverse/btracker-gemini.git
synced 2026-04-01 09:35:32 +00:00
require valid Url, implement magnet links
This commit is contained in:
parent
e8b409c4d6
commit
b2f3809656
4 changed files with 30 additions and 4 deletions
|
|
@ -3,6 +3,7 @@ use std::{
|
|||
net::{Ipv4Addr, SocketAddr, SocketAddrV4},
|
||||
path::PathBuf,
|
||||
};
|
||||
use url::Url;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
#[command(version, about, long_about = None)]
|
||||
|
|
@ -13,7 +14,7 @@ pub struct Config {
|
|||
|
||||
/// Tracker(s) to join / scrape requests
|
||||
#[arg(short, long)]
|
||||
pub tracker: Option<Vec<String>>,
|
||||
pub tracker: Option<Vec<Url>>,
|
||||
|
||||
/// Bind server `host:port` to listen incoming connections on it
|
||||
#[arg(short, long, default_value_t = SocketAddr::V4(SocketAddrV4::new(Ipv4Addr::LOCALHOST, 1965)))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue