Skip to content

Commit

Permalink
Fix multiple values in --socks5/--http (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorz committed Mar 13, 2023
1 parent ffd897c commit 207b31e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ pub(crate) struct CliArgs {
/// SOCKSv5 server list. IP address can omit for localhost.
#[arg(short = 's', long = "socks5", value_name = "SOCKS5-SERVERS")]
#[arg(value_parser = parse_socket_addr_default_on_localhost)]
#[arg(num_args = 0..)]
pub(crate) socks5_servers: Vec<SocketAddr>,

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

/// INI file contains list of proxy servers.
Expand Down

0 comments on commit 207b31e

Please sign in to comment.