Skip to content

Commit

Permalink
Update resolver_miekg.go
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Motylev <dmitry@redsift.io>
  • Loading branch information
csucu and dmotylev authored Aug 16, 2023
1 parent 4dbfe6e commit 6bfda69
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions resolver_miekg.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,9 @@ func (r *miekgDNSResolver) LookupTXTStrict(name string) ([]string, *ResponseExtr
minTTL = 0
}

if len(res.Answer) == 0 && res.Rcode == dns.RcodeSuccess {
void = true
}

extras := &ResponseExtras{
TTL: time.Duration(minTTL) * time.Second,
Void: void,
Void: len(res.Answer) == 0 && res.Rcode == dns.RcodeSuccess,
}

return txts, extras, nil
Expand Down

0 comments on commit 6bfda69

Please sign in to comment.