Skip to content

Commit

Permalink
Merge pull request #343 from gngpp/fix
Browse files Browse the repository at this point in the history
fix(args): Fixed the problem of proxy parameters being separated by spaces
  • Loading branch information
0x676e67 authored Nov 28, 2023
2 parents 2765c9f + 18474b1 commit cb253c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ pub fn parse_proxies_url(s: &str) -> anyhow::Result<Vec<proxy::Proxy>> {
for ele in split {
let parts: Vec<_> = ele.split('|').collect();
let (proto, typer) = if parts.len() != 2 {
("all", ele)
("all", ele.trim())
} else {
(parts[0], parts[1])
(parts[0].trim(), parts[1].trim())
};
match (
typer.parse::<IpAddr>(),
Expand Down

0 comments on commit cb253c1

Please sign in to comment.