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 committed Oct 1, 2024
1 parent 6ad3bd1 commit 324a49d
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 324a49d

Please sign in to comment.