Skip to content

Commit

Permalink
Fix breaking change on CLI arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
sorz committed Jun 9, 2022
1 parent c5203a0 commit c5584f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@ pub(crate) struct CliArgs {
/// Port number to bind on. Multiple ports may be given (will selected
/// accroding to the SERVER-LIST ini config).
#[clap(short = 'p', long, value_name = "PORT", required = true)]
#[clap(multiple_values = true)]
pub(crate) port: Vec<u16>,

/// SOCKSv5 server list. IP address can omit for localhost.
#[clap(short = 's', long = "socks5", value_name = "SOCKS5-SERVERS")]
#[clap(multiple_values = true)]
#[clap(parse(try_from_str = parse_socket_addr_default_on_localhost))]
pub(crate) socks5_servers: Vec<SocketAddr>,

/// HTTP proxy server list. IP address can omit for localhost.
#[clap(short = 't', long = "http", value_name = "HTTP-SERVERS")]
#[clap(multiple_values = true)]
#[clap(parse(try_from_str = parse_socket_addr_default_on_localhost))]
pub(crate) http_servers: Vec<SocketAddr>,

Expand Down

0 comments on commit c5584f2

Please sign in to comment.