commit | 453b5e4ef490055aca383d07dc4cd7bc67d96a91 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri Feb 19 20:03:07 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Wed May 05 17:34:33 2021 +0800 |
tree | 1011385a20650d5c5835c649784b439319027246 | |
parent | 08b2f2b72e938dc0618b2e04b9ecd984630e0d50 [diff] |
Change ServerIdentity to store IPSockAddr instead of IPAddress The parameter protocol was added to ServerIdentity in order to identify an unique private DNS server. This is unneeded after this change since we can check the socket port to achieve the same purpose. Bug: 186177613 Test: cd packages/modules/DnsResolver && atest Change-Id: Ifdad55ea817ff568a84271a5d7b77dd4fbe4772c
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.