Add Rfc6724 style sort for DnsResolver and fix potential bug
1. pass default network explicitly to fix potential mis-sync network problem in DnsResolver#query 2. Add rfc6724 sort and related test 3. DnsResolver do rfc6724 sort before response InetAddress answers 4. move haveIpv* function from DnsResolver to DnsUtils Bug: 129530368 Test: atest DnsResolverTest DnsUtilsTest Merged-In: I0323f5c7f32fc3fa589b9e87f8e7c9caf744dbd4 (cherry picked from commit d352f4ca) Change-Id: I98455045fa43cc5a5902a08232251c1734feaac3
Loading
Please register or sign in to comment