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:
parent
dc93dc4ad2
commit
fd022f4065
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue