From 9e70f8b4a1f17eb7acbc8e74e56ec3a808f38a55 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 10 Nov 2016 09:34:05 +0100 Subject: [PATCH] Cache resolved DNS records for one day instead of one week --- app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java index 677e29ae..7fa3aa3c 100644 --- a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java +++ b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java @@ -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);