Skip to content

Commit

Permalink
change err client in check_error_from_msg
Browse files Browse the repository at this point in the history
  • Loading branch information
joalopez1206 authored and FranciscaOrtegaG committed Oct 9, 2024
1 parent 888e7d9 commit 9639afe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/async_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ impl AsyncResolver {
if let Rcode::NOERROR = rcode {
let answer = lookup_response.to_dns_msg().get_answer();
if answer.len() == 0 {
Err(ClientError::TemporaryError("no answer found"))?;
// TODO: ask why no answer is error ?
//Err(ClientError::TemporaryError("no answer found"))?;
}
return Ok(lookup_response);
}
Expand Down

0 comments on commit 9639afe

Please sign in to comment.