1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-12 21:31:12 +01:00

fix DNS cache

This commit is contained in:
luvletter2333 2021-08-20 03:17:32 +08:00
parent df23ecad49
commit f0761cb93c
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8
2 changed files with 2 additions and 2 deletions

View File

@ -910,7 +910,7 @@ public class ConnectionsManager extends BaseController {
result = new InetAddress[0];
}
return new ResolvedDomain(result, 10 * 60 * 1000L);
return new ResolvedDomain(result, SystemClock.elapsedRealtime());
}

View File

@ -87,7 +87,7 @@ object DnsFactory {
}
}
FileLog.d("Try system dns")
FileLog.d("Try system dns to resolve $domain")
try {
return InetAddress.getAllByName(domain).toList()