mirror of
https://github.com/edu4rdshl/rusolver.git
synced 2026-07-17 23:24:55 +00:00
Remove empty lines from file.
Signed-off-by: Edu4rdSHL <edu4rdshl@protonmail.com>
This commit is contained in:
parent
8022a48bcc
commit
14f3bfbccc
1 changed files with 2 additions and 1 deletions
|
|
@ -129,11 +129,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
.collect();
|
||||
|
||||
// Create resolvers
|
||||
let nameserver_ips;
|
||||
let mut nameserver_ips;
|
||||
|
||||
if custom_resolvers {
|
||||
nameserver_ips =
|
||||
return_file_lines(value_t!(matches.value_of("resolvers"), String).unwrap()).await;
|
||||
nameserver_ips.retain(|ip| !ip.is_empty());
|
||||
} else {
|
||||
nameserver_ips = built_in_nameservers.clone();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue