net/dns/resolver: fix test failure

Updates #cleanup

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I0e815a69ee44ca0ff7c0ea0ca3c6904bbf67ed1f
This commit is contained in:
Andrew Dunham 2024-06-25 22:58:45 -04:00
parent 27033c6277
commit a475c435ec

View File

@ -889,7 +889,9 @@ func (f *forwarder) forwardWithDestChan(ctx context.Context, query packet, respo
// Attempt to recompile the DNS configuration
// If we are being asked to forward queries and we have no
// nameservers, the network is in a bad state.
f.missingUpstreamRecovery()
if f.missingUpstreamRecovery != nil {
f.missingUpstreamRecovery()
}
res, err := servfailResponse(query)
if err != nil {