From 53f17f9a6ae0c44596eaefef3674cde11025cfc1 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 11 Mar 2017 17:39:57 +0100 Subject: [PATCH] Stop logging TCP packets without flags --- app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java index c08c1952..ebf76400 100644 --- a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java +++ b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java @@ -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; }