From 207b31ebf8e9b5a70a7105e7305f74960b58afbc Mon Sep 17 00:00:00 2001 From: Shell Chen Date: Mon, 13 Mar 2023 12:05:49 +0800 Subject: [PATCH] Fix multiple values in --socks5/--http (#19) --- src/cli.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index 323db31..e646e51 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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, /// 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, /// INI file contains list of proxy servers.