Skip to content

Commit

Permalink
misc: small fix or general refactoring i did not bother commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
evilsocket committed Nov 5, 2023
1 parent 5e90f04 commit a47d310
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/plugins/dns/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,15 @@ impl Plugin for DNS {
let addresses: Vec<IpAddr> = response.iter().filter(|ip| !ip.is_loopback()).collect();
if !addresses.is_empty() {
return Ok(Some(Loot::from(
"",
[
("subdomain".to_owned(), subdomain),
(
"addresses".to_owned(),
addresses
.iter()
.map(|a| a.to_string())
.collect::<Vec<String>>()
.join(", "),
),
],
&subdomain,
[(
"addresses".to_owned(),
addresses
.iter()
.map(|a| a.to_string())
.collect::<Vec<String>>()
.join(", "),
)],
)));
}
}
Expand Down

0 comments on commit a47d310

Please sign in to comment.