Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 430248e9 authored by Mike Yu's avatar Mike Yu Committed by Automerger Merge Worker
Browse files

Add one more test DoH provider in the list am: 770cf75b am: 6edaf787 am: 6247031f

Original change: https://android-review.googlesource.com/c/platform/packages/modules/DnsResolver/+/1890099

Change-Id: Idf6eccb428e71e8c4e6fe3c09805b013a7231645
parents 1ac78d84 6247031f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ class PrivateDnsConfiguration {

    // TODO: Move below DoH relevant stuff into Rust implementation.
    std::map<unsigned, DohIdentity> mDohTracker GUARDED_BY(mPrivateDnsLock);
    std::array<DohProviderEntry, 3> mAvailableDoHProviders = {{
    std::array<DohProviderEntry, 4> mAvailableDoHProviders = {{
            {"Google",
             {"2001:4860:4860::8888", "2001:4860:4860::8844", "8.8.8.8", "8.8.4.4"},
             "dns.google",
@@ -235,12 +235,17 @@ class PrivateDnsConfiguration {
             "https://cloudflare-dns.com/dns-query",
             false},

            // The DoH provider for testing.
            // The DoH providers for testing only.
            {"ResolverTestProvider",
             {"127.0.0.3", "::1"},
             "example.com",
             "https://example.com/dns-query",
             true},
            {"AndroidTesting",
             {"192.0.2.100"},
             "dns.androidtesting.org",
             "https://dns.androidtesting.org/dns-query",
             false},
    }};

    struct RecordEntry {