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:
parent
5bfc880751
commit
edf9e11993
1 changed files with 0 additions and 7 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue