Remove default allow for UDP on unmatched packet (#2300)

This fixes an issue where UDP rules were ineffective for userspace clients (Windows/macOS)
This commit is contained in:
Maycon Santos 2024-07-22 15:35:17 +02:00 committed by GitHub
parent 0a8c78deb1
commit 926e11b086
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -337,7 +337,6 @@ func validateRule(ip net.IP, packetData []byte, rules map[string]Rule, d *decode
if rule.dPort != 0 && rule.dPort == uint16(d.udp.DstPort) {
return rule.drop, true
}
return rule.drop, true
case layers.LayerTypeICMPv4, layers.LayerTypeICMPv6:
return rule.drop, true
}