1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-22 07:43:15 +00:00

Block system in disconnected state

This commit is contained in:
M66B 2020-08-26 12:15:38 +02:00
parent a94a36ec1c
commit 151464d266

View file

@ -1896,7 +1896,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
packet.allowed = true;
Log.i(TAG, "Allowing UDP " + packet);
} else if (packet.uid < 2000 &&
!last_connected && isSupported(packet.protocol)) {
!last_connected && isSupported(packet.protocol) && false) {
// Allow system applications in disconnected state
packet.allowed = true;
Log.w(TAG, "Allowing disconnected system " + packet);