Log/notify other apps only

This commit is contained in:
M66B 2017-11-15 09:00:00 +01:00
parent 2ad2e70815
commit 49a359053d
1 changed files with 2 additions and 1 deletions

View File

@ -1893,7 +1893,8 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
if (prefs.getBoolean("log", false) || prefs.getBoolean("log_app", false))
if (packet.protocol != 6 /* TCP */ || !"".equals(packet.flags))
logPacket(packet);
if (packet.uid != Process.myUid())
logPacket(packet);
return allowed;
}