mirror of https://github.com/M66B/NetGuard.git
Disable name resolving while logging
This commit is contained in:
parent
5bfc880751
commit
edf9e11993
|
@ -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)))
|
||||||
|
|
Loading…
Reference in New Issue