missed that in rebase

This commit is contained in:
ooni noob 2022-11-21 14:21:06 +01:00
parent 4c96b2f0f4
commit 95b245cda4

View File

@ -230,7 +230,7 @@ func (r *TCPRunner) resolve(host string) ([]string, bool) {
addrs, err := resolver.LookupHost(r.ctx, host)
r.tk.Queries = append(r.tk.Queries, r.trace.DNSLookupsFromRoundTrip()...)
if err != nil {
r.global_error(err)
r.tk.Failure = *tracex.NewFailure(err)
return []string{}, false
}
r.logger.Infof("Finished DNS for %s: %v", host, addrs)