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

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

Do not check whether DoT server list is empty in setDoh am: e26e4022

parents 328f3cab e26e4022
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -599,10 +599,6 @@ int PrivateDnsConfiguration::setDoh(int32_t netId, uint32_t mark,
                                    const std::optional<DohParamsParcel> dohParams) {
    LOG(DEBUG) << "PrivateDnsConfiguration::setDoh(" << netId << ", 0x" << std::hex << mark
               << std::dec << ", " << servers.size() << ", " << name << ")";
    if (servers.empty()) {
        clearDoh(netId);
        return 0;
    }

    const NetworkType networkType = resolv_get_network_types_for_net(netId);
    const PrivateDnsStatus status = getStatusLocked(netId);