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

Commit 63dac211 authored by Patrick Rohr's avatar Patrick Rohr Committed by Maciej Żenczykowski
Browse files

Remove isAtLeastR() check

Mainline does not ship to pre-R anymore.

Test: TH
Change-Id: Icca78883e97f8447755df62bc80588ad036515c3
parent 9aa49aeb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -299,11 +299,9 @@ bool DnsTlsTransport::validate(const DnsTlsServer& server, uint32_t mark) {
    //
    // For instance, with latencyFactor = 3 and latencyOffsetMs = 10, if UDP probe latency is 5 ms,
    // DoT probe latency must less than 25 ms.
    const bool isAtLeastR = getApiLevel() >= 30;
    int latencyFactor = Experiments::getInstance()->getFlag("dot_validation_latency_factor",
                                                            (isAtLeastR ? 3 : -1));
    int latencyFactor = Experiments::getInstance()->getFlag("dot_validation_latency_factor", 3);
    int latencyOffsetMs = Experiments::getInstance()->getFlag("dot_validation_latency_offset_ms",
                                                              (isAtLeastR ? 100 : -1));
                                                              100);
    const bool shouldCompareUdpLatency =
            server.name.empty() &&
            (latencyFactor >= 0 && latencyOffsetMs >= 0 && latencyFactor + latencyOffsetMs != 0);