Skip to content

Commit

Permalink
read_system_conf returns ResolverResult on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Feb 12, 2020
1 parent 064c5ac commit 784d54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay/dns_resolver/trust_dns_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub async fn create_resolver(dns: Option<ResolverConfig>, rt: Handle) -> io::Res
Ok(o) => o,
Err(err) => {
error!("Failed to initialize DNS resolver with system-config, error: {}", err);
return Err(err);
return Err(From::from(err));
}
};

Expand Down

0 comments on commit 784d54c

Please sign in to comment.