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

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

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

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

Change-Id: I8cb8e5a2c7eb1c78fd1cff43b0daceec0ba86890
parents 1c98ef6a 5b35f2f7
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);
}