fix dns error

This commit is contained in:
Christien Rioux 2023-07-13 21:44:34 -04:00
parent 7a737abb12
commit 73498c991f

View File

@ -118,7 +118,7 @@ pub async fn txt_lookup<S: AsRef<str>>(host: S) -> EyreResult<Vec<String>> {
.await { .await {
Ok(v) => v, Ok(v) => v,
Err(e) => { Err(e) => {
if matches!(e.kind(), ResolveErrorKind::NoConnections) { if !matches!(e.kind(), ResolveErrorKind::NoRecordsFound { query:_, soa:_, negative_ttl:_, response_code:_, trusted:_ }) {
reset_resolver().await; reset_resolver().await;
} }
bail!("txt_lookup error: {}", e); bail!("txt_lookup error: {}", e);