parse SocketAddr from the argument option

This commit is contained in:
yggverse 2025-08-05 20:43:50 +03:00
parent ea8d5c316f
commit 6f4d2894b3
2 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,7 @@ pub struct Config {
/// * this option is useful only for binding the data exchange service,
/// to restrict the outgoing connections for torrent resolver, use `bind` option instead
#[arg(long)]
pub listen: Option<String>,
pub listen: Option<SocketAddr>,
/// Enable UPnP forwarding
#[arg(long, default_value_t = false)]