mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-01 21:04:08 +00:00
Stop logging TCP packets without flags
This commit is contained in:
parent
e05a628b14
commit
53f17f9a6a
1 changed files with 2 additions and 1 deletions
|
@ -1678,7 +1678,8 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
lock.readLock().unlock();
|
||||
|
||||
if (prefs.getBoolean("log", false) || prefs.getBoolean("log_app", false))
|
||||
logPacket(packet);
|
||||
if (packet.protocol != 6 /* TCP */ || !"".equals(packet.flags))
|
||||
logPacket(packet);
|
||||
|
||||
return allowed;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue