Skip to content

Commit

Permalink
Support for fully-qualified domain names
Browse files Browse the repository at this point in the history
Fixes #10

Signed-off-by: Edu4rdSHL <edu4rdshl@protonmail.com>
  • Loading branch information
Edu4rdSHL committed Dec 15, 2021
1 parent 50b0e6b commit ddd0557
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

stream::iter(hosts)
.map(|host| {
let resolver_fut = resolvers.ipv4_lookup(host.clone() + ".");
let trustable_resolver_fut = trustable_resolver.ipv4_lookup(host.clone() + ".");
let resolver_fut = resolvers.ipv4_lookup(host.trim_end_matches('.').to_owned() + ".");
let trustable_resolver_fut =
trustable_resolver.ipv4_lookup(host.trim_end_matches('.').to_owned() + ".");
let wildcard_ips = wildcard_ips.clone();

async move {
Expand Down

0 comments on commit ddd0557

Please sign in to comment.