mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
implement listen option, rename enable_upnp_port_forwarding to listen_upnp
This commit is contained in:
parent
a762cb59b6
commit
fbc80843c7
3 changed files with 25 additions and 8 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue