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:
parent
df23ecad49
commit
f0761cb93c
@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user