1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-28 10:51:14 +00:00

ICMP has no real port numbers

This commit is contained in:
M66B 2016-02-05 22:10:12 +01:00
parent dc93dc4ad2
commit fd022f4065

View file

@ -1102,6 +1102,9 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
if (packet.uid == Process.myUid())
return true;
if (packet.protocol == 1 || packet.protocol == 58) // ICMP
packet.dport = 0;
packet.allowed = false;
if (prefs.getBoolean("filter", false)) {
if (packet.uid < 0) // unknown