Skip to content

Commit

Permalink
Ensure ICMPV6 packets are not routed
Browse files Browse the repository at this point in the history
Fixes #1008
  • Loading branch information
syphyr committed Nov 4, 2023
1 parent a5d5674 commit 1848169
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ private static boolean isPacketDNS(IpPacket p) {
return false;
}
private static boolean isPacketICMP(IpPacket p) {
return (p.getHeader().getProtocol() == IpNumber.ICMPV4 || p.getHeader().getProtocol() == IpNumber.ICMPV4);
return (p.getHeader().getProtocol() == IpNumber.ICMPV4 || p.getHeader().getProtocol() == IpNumber.ICMPV6);
}

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
Expand Down

0 comments on commit 1848169

Please sign in to comment.