commit | fe4534024258043f99e47d37cc0924cf2bf468e2 | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Thu Jun 24 03:15:03 2021 +0800 |
committer | Luke Huang <huangluke@google.com> | Tue Jul 06 11:05:56 2021 +0800 |
tree | 92cc6f54c926303dd5446abbf96ba619613771f9 | |
parent | 341bdae5f4584a87529adcf3b68e42a79dd857bc [diff] |
Refactor DoH implementation Current doh implementation is designed to be totally managed by DnsResolver, which means we might need bunch of C++ glue code to make things work. This goal of this refactoring is to minimize the required C++ glue code and put most control logic into Rust side. Test: atest Bug: 155855709 Change-Id: I9a048f5fe72c4c25ae1b95ddf839f244eda34097
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.