implement listen option, rename enable_upnp_port_forwarding to listen_upnp

This commit is contained in:
yggverse 2025-07-10 02:56:45 +03:00
parent a762cb59b6
commit fbc80843c7
3 changed files with 25 additions and 8 deletions

View file

@ -53,9 +53,13 @@ pub struct Config {
#[arg(long, default_value_t = false)]
pub enable_tcp: bool,
/// Enable UPnP
/// Bind listener on specified `host:port` (`[host]:port` for IPv6)
#[arg(long)]
pub listen: Option<String>,
/// Enable UPnP forwarding
#[arg(long, default_value_t = false)]
pub enable_upnp_port_forwarding: bool,
pub listen_upnp: bool,
/// Enable upload (share bytes received with BitTorrent network)
#[arg(long, default_value_t = false)]