Stop logging TCP packets without flags

This commit is contained in:
M66B 2017-03-11 17:39:57 +01:00
parent e05a628b14
commit 53f17f9a6a
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}