Skip to content

Commit

Permalink
allow duplicate domains
Browse files Browse the repository at this point in the history
  • Loading branch information
blind-oracle committed Jun 11, 2024
1 parent 9cfae90 commit d8ab69d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ pub async fn main(cli: &Cli) -> Result<(), Error> {
));
}

for (&d, &c) in &domains.iter().counts() {
if c > 1 {
return Err(anyhow!("Domain '{d}' specified more than once"));
}
}
// Leave only unique domains
domains = domains.into_iter().unique().collect::<Vec<_>>();

warn!(
"Running with domains: {:?}",
Expand Down

0 comments on commit d8ab69d

Please sign in to comment.