From 73498c991ffb5c04042ccbcdb601b5b623304222 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Thu, 13 Jul 2023 21:44:34 -0400 Subject: [PATCH] fix dns error --- veilid-core/src/intf/native/system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/veilid-core/src/intf/native/system.rs b/veilid-core/src/intf/native/system.rs index 3d98a668..f473e253 100644 --- a/veilid-core/src/intf/native/system.rs +++ b/veilid-core/src/intf/native/system.rs @@ -118,7 +118,7 @@ pub async fn txt_lookup>(host: S) -> EyreResult> { .await { Ok(v) => v, Err(e) => { - if matches!(e.kind(), ResolveErrorKind::NoConnections) { + if !matches!(e.kind(), ResolveErrorKind::NoRecordsFound { query:_, soa:_, negative_ttl:_, response_code:_, trusted:_ }) { reset_resolver().await; } bail!("txt_lookup error: {}", e);