Workaround bug in older Android versions

This commit is contained in:
M66B 2017-11-11 10:38:06 +01:00
parent d2a6042a6a
commit b31ef2cf8d
1 changed files with 4 additions and 1 deletions

View File

@ -1839,7 +1839,10 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
// Allow unknown system traffic
packet.allowed = true;
Log.w(TAG, "Allowing unknown system " + packet);
} else if (packet.uid == Process.myUid()) {
// Allow self
packet.allowed = true;
Log.w(TAG, "Allowing self " + packet);
} else {
boolean filtered = false;
// Only TCP (6) and UDP (17) have port numbers