This commit is contained in:
unknown
2020-12-29 19:57:22 +08:00
3 changed files with 7 additions and 4 deletions

1
.idea/gradle.xml generated
View File

@@ -85,6 +85,7 @@
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>

View File

@@ -32,7 +32,7 @@ dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation rootProject.ext.dependencies.arouter
annotationProcessor rootProject.ext.dependencies.aroutercompiler
implementation 'com.mogo.httpdns:httpdns-helper:1.0.8'
implementation 'com.mogo.httpdns:httpdns-helper:1.0.14'
if (Boolean.valueOf(RELEASE)) {
implementation rootProject.ext.dependencies.httpdnsbase

View File

@@ -51,10 +51,12 @@ public class MogoHttpDns implements IMogoHttpDns, HttpDns, OnAddressChangedListe
@Override
public void getHttpDnsIp(String host, int type, boolean useCache, IHttpDnsCallback callback) {
Logger.d("MogoHttpDns", "host: " + host + " type: " + type);
Logger.d("MogoHttpDns","all host: ");
Map<String,String> map = httpDnsHelper.getAllAddress();
for (String key : map.keySet()) {
Logger.d("MogoHttpDns","key: "+key+" value: "+map.get(key));
if(map != null) {
Logger.d("MogoHttpDns", "all host: ");
for (String key : map.keySet()) {
Logger.d("MogoHttpDns", "key: " + key + " value: " + map.get(key));
}
}
if (useCache) {
String address = httpDnsHelper.getHttpDnsCachedAddress(type, host);