Skip to content

Commit

Permalink
feat: added port commad line flag to set the destination port for `…
Browse files Browse the repository at this point in the history
…TCP` and later `UDP`
  • Loading branch information
fujiapple852 committed May 13, 2022
1 parent b729b18 commit 5773fe5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ pub struct Args {
#[clap(long)]
pub source_port: Option<u16>,

/// The destination port (TCP only)
#[clap(long, short = 'P', default_value_t = 80)]
pub port: u16,

/// The maximum time to wait to perform DNS queries.
#[clap(long, default_value = "5s")]
pub dns_timeout: String,
Expand Down

0 comments on commit 5773fe5

Please sign in to comment.