commit | fa985f71afc584b27b9768f04fb9b5fdfcb047be | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Mon Nov 23 20:24:21 2020 +0800 |
committer | Mike Yu <yumike@google.com> | Fri Nov 27 21:11:25 2020 +0800 |
tree | f91e763f44d01137ef8a5ab998dbbff6dd977208 | |
parent | 3334a5e0fc7b049e3e550da97014112f415a0736 [diff] |
Extend DnsTlsServer to store validation state This change also fixes a bug in PrivateDnsConfiguration which DoT servers not valid for the network might somehow be counted as validated servers. For instance, if a validation for DoT server finishes after the server is removed, the server is mistakenly deemed as a validated server. Bug: 79727473 Test: cd packages/modules/DnsResolver && atest Change-Id: Idee1f34f59dce1451b7b3e87fd20e6795af883ba
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.