fix(oohelperd): reduce differences with legacy helper (#504)
Part of https://github.com/ooni/probe/issues/1707
This commit is contained in:
parent
3cb782f0a2
commit
985c1ba761
3 changed files with 18 additions and 3 deletions
|
|
@ -28,5 +28,8 @@ type DNSConfig struct {
|
|||
func DNSDo(ctx context.Context, config *DNSConfig) {
|
||||
defer config.Wg.Done()
|
||||
addrs, err := config.Resolver.LookupHost(ctx, config.Domain)
|
||||
if addrs == nil {
|
||||
addrs = []string{} // fix: the old test helper did that
|
||||
}
|
||||
config.Out <- CtrlDNSResult{Failure: newfailure(err), Addrs: addrs}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue