Refactor dnsresponse code

This commit is contained in:
Alexander David Frick 2022-02-25 07:15:04 -06:00 committed by GitHub
parent 48435b5281
commit 2db61bc1e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1045,8 +1045,7 @@ class DnsOverHttpsProbeRunner : public DnsProbeRunner {
if (extraction_error == if (extraction_error ==
DnsResponseResultExtractor::ExtractionError::kOk && DnsResponseResultExtractor::ExtractionError::kOk &&
results.legacy_addresses() && results.ip_endpoints() && !results.ip_endpoints()->empty()) {
!results.legacy_addresses().value().empty()) {
// The DoH probe queries don't go through the standard DnsAttempt // The DoH probe queries don't go through the standard DnsAttempt
// path, so the ServerStats have not been updated yet. // path, so the ServerStats have not been updated yet.
context_->RecordServerSuccess( context_->RecordServerSuccess(