Disable name resolving while logging

This commit is contained in:
M66B 2016-02-04 07:06:54 +01:00
parent 5bfc880751
commit edf9e11993
1 changed files with 0 additions and 7 deletions

View File

@ -681,13 +681,6 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
// Application log // Application log
if (log_app && packet.uid > 0) { 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 (dh.updateAccess(packet, dname, -1))
if (notify && prefs.getBoolean("notify_" + packet.uid, true) && if (notify && prefs.getBoolean("notify_" + packet.uid, true) &&
(system || !Util.isSystem(packet.uid, SinkholeService.this))) (system || !Util.isSystem(packet.uid, SinkholeService.this)))