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

Commit 770cf75b authored by Mike Yu's avatar Mike Yu
Browse files

Add one more test DoH provider in the list

Adding this new DoH provider won't impact on real users because
192.0.2.100 should not be used for public networks.

Bug: 206082566
Test: m dnsresolver
Change-Id: I9be494bf686ea1b2131eed6c8a5733c79827ea9e
parent 0f13e595
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 {