diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py index 76668a6..daa7ace 100644 --- a/src/firewall/core/nftables.py +++ b/src/firewall/core/nftables.py @@ -82,7 +82,7 @@ def _icmp_types_fragments(protocol, type, code=None): fragments = [{"match": {"left": {"payload": {"protocol": protocol, "field": "type"}}, "op": "==", "right": type}}] - if code: + if code is not None: fragments.append({"match": {"left": {"payload": {"protocol": protocol, "field": "code"}}, "op": "==", "right": code}})