From edf9e119933feffed48e37b63bc45fd0c7b6f041 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 4 Feb 2016 07:06:54 +0100 Subject: [PATCH] Disable name resolving while logging --- .../main/java/eu/faircode/netguard/SinkholeService.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/SinkholeService.java b/app/src/main/java/eu/faircode/netguard/SinkholeService.java index 1b63fa8f..7529b655 100644 --- a/app/src/main/java/eu/faircode/netguard/SinkholeService.java +++ b/app/src/main/java/eu/faircode/netguard/SinkholeService.java @@ -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)))