mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-12 01:39:36 -04:00
fix dns error
This commit is contained in:
parent
7a737abb12
commit
73498c991f
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ pub async fn txt_lookup<S: AsRef<str>>(host: S) -> EyreResult<Vec<String>> {
|
|||
.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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue