mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-04 06:23:04 +00:00
Cache resolved DNS records for one day instead of one week
This commit is contained in:
parent
116d7cabfa
commit
9e70f8b4a1
1 changed files with 2 additions and 2 deletions
|
@ -524,8 +524,8 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
// Keep log records for three days
|
||||
DatabaseHelper.getInstance(ServiceSinkhole.this).cleanupLog(new Date().getTime() - 3 * 24 * 3600 * 1000L);
|
||||
|
||||
// Keep DNS records for a week
|
||||
DatabaseHelper.getInstance(ServiceSinkhole.this).cleanupDns(new Date().getTime() - 7 * 24 * 3600 * 1000L);
|
||||
// Keep DNS records for one day
|
||||
DatabaseHelper.getInstance(ServiceSinkhole.this).cleanupDns(new Date().getTime() - 1 * 24 * 3600 * 1000L);
|
||||
|
||||
// Check for update
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSinkhole.this);
|
||||
|
|
Loading…
Reference in a new issue