Skip to content

Commit

Permalink
fix trust-dns error kind on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Oct 3, 2023
1 parent d050e60 commit b306d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns/trust_dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ impl Iterator for SocketAddrs {
/// which reads from `/etc/resolve.conf`.
fn new_resolver() -> io::Result<TokioAsyncResolver> {
let (config, opts) = system_conf::read_system_conf()
.map_err(|e| io::Error::new(e.kind(), format!("error reading DNS system conf: {}", e)))?;
.map_err(|e| io::Error::new(io::ErrorKind::Other, format!("error reading DNS system conf: {}", e)))?;
Ok(TokioAsyncResolver::tokio(config, opts))
}

0 comments on commit b306d35

Please sign in to comment.