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

Commit 5b35f2f7 authored by Mike Yu's avatar Mike Yu Committed by Automerger Merge Worker
Browse files

Slightly improve isDoHEnabled() am: 29505cb6 am: 1d6d197b am: dc1fa118

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

Change-Id: I3bbc4aebd68af8d43802067d26db66ba8ecd0673
parents 7f3c62c9 dc1fa118
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -62,7 +62,8 @@ inline bool isUserDebugBuild() {

inline bool isDoHEnabled() {
    // STOPSHIP(b/200763585): clean up it before T shipping.
    if (android::modules::sdklevel::IsAtLeastT()) return 1;
    static bool isAtLeastT = android::modules::sdklevel::IsAtLeastT();
    if (isAtLeastT) return 1;

    return android::net::Experiments::getInstance()->getFlag("doh", 0);
}