Rebase on experiment

This commit is contained in:
ooni noob 2022-11-20 21:04:57 +01:00
parent b4d5eebb60
commit 4c96b2f0f4

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.tk.Failure = *tracex.NewFailure(err)
r.global_error(err)
return []string{}, false
}
r.logger.Infof("Finished DNS for %s: %v", host, addrs)