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

Commit 6247031f 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

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

Change-Id: I56e4f2aa8ccc7253a0ca95caee8ce44dfcb63dab
parents 78d4a425 6edaf787
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 {