Added logging

This commit is contained in:
M66B 2016-02-17 13:25:29 +01:00
parent 7b9d3039ec
commit a5b44db63f
1 changed files with 2 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
mapUidIPFilters.put(key, new HashMap());
try {
//Log.i(TAG, "Set filter uid=" + uid + " " + daddr + " " + dresource + "/" + dport + "=" + block);
// Log.i(TAG, "Set filter uid=" + uid + " " + daddr + " " + dresource + "/" + dport + "=" + block);
if (dresource == null) {
if (Util.isNumericAddress(daddr))
mapUidIPFilters.get(key).put(InetAddress.getByName(daddr), block);
@ -1094,6 +1094,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
}
}
cursor.close();
Log.i(TAG, "UID/IP filters updated");
}
private void prepareForwarding() {