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

Commit 9ba23d63 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: ff7703fd

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

Change-Id: I81ee955cf17af142437d725a2d686a4b109a77c6
parents cd7ee0eb ff7703fd
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 {