mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-03 05:44:14 +00:00
Reduced logging
This commit is contained in:
parent
8bb7fe2251
commit
0525a14eda
1 changed files with 4 additions and 4 deletions
|
@ -1651,9 +1651,6 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
if (version == 6 && !(iname instanceof Inet6Address))
|
||||
continue;
|
||||
|
||||
if (dname != null)
|
||||
Log.i(TAG, "Set filter " + key + " " + daddr + "/" + dresource + "=" + block);
|
||||
|
||||
boolean exists = mapUidIPFilters.get(key).containsKey(iname);
|
||||
if (!exists || !mapUidIPFilters.get(key).get(iname).isBlocked()) {
|
||||
IPRule rule = new IPRule(key, name + "/" + iname, block, time + ttl);
|
||||
|
@ -1662,8 +1659,11 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
Log.w(TAG, "Address conflict " + key + " " + daddr + "/" + dresource);
|
||||
} else if (exists) {
|
||||
mapUidIPFilters.get(key).get(iname).updateExpires(time + ttl);
|
||||
if (dname != null)
|
||||
if (dname != null && ttl > 60 * 1000L)
|
||||
Log.w(TAG, "Address updated " + key + " " + daddr + "/" + dresource);
|
||||
} else {
|
||||
if (dname != null)
|
||||
Log.i(TAG, "Ignored " + key + " " + daddr + "/" + dresource + "=" + block);
|
||||
}
|
||||
} else
|
||||
Log.w(TAG, "Address not numeric " + name);
|
||||
|
|
Loading…
Reference in a new issue