AdguardTeam / dnsproxy

Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
Apache License 2.0
2.38k stars 246 forks source link

ExchangeParallel return zero resp #398

Open Nyx2022 opened 3 months ago

Nyx2022 commented 3 months ago

when i use ExchangeParallel to query a domain like the following code: dnsReply, dnsResolved, err := upstream.ExchangeParallel(Ups, &query01)

but some situation bad happens:

the err is nil, the dnsReply and dnsResolved is not nil, but the anser in dnsReplay is empty like the picture:

image

so i think this is a bug, and i advise to fix it