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

Skip to content
Commit e26e4022 authored by Mike Yu's avatar Mike Yu Committed by Remi NGUYEN VAN
Browse files

Do not check whether DoT server list is empty in setDoh

With DDR feature enabled, DoH servers can also be available from
dohParams. setDoh() should not stop if only DoT server list is
empty.

Instead of adding the check for dohParams in the existing if
statement, this change relies on makeDohIdentity() since it can
return a ResultError if both DoT server list and dohParams are
empty.

Note that this change just allows the DnsResolver to start
validating a DoH server when SVCB lookup compltes before DoT
hostname lookup. Before DoT hostname lookup completes and
succeeds, private DNS hostname resolution in NetworkMonitor
is still running.

Bug: 240259333
Test: atest
Change-Id: I16a326df733bb1fa9451a0fabdd9c4d6c002e9e0
parent 96138070
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment