1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-28 10:51:14 +00:00

Disable name resolving while logging

This commit is contained in:
M66B 2016-02-04 07:06:54 +01:00
parent 5bfc880751
commit edf9e11993

View file

@ -681,13 +681,6 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
// Application log
if (log_app && packet.uid > 0) {
if (dname == null)
try {
dname = InetAddress.getByName(packet.daddr).getHostName();
} catch (UnknownHostException ignored) {
dname = packet.daddr;
}
if (dh.updateAccess(packet, dname, -1))
if (notify && prefs.getBoolean("notify_" + packet.uid, true) &&
(system || !Util.isSystem(packet.uid, SinkholeService.this)))