From e20638b30ddd067c7d08db46a549c7f894e8be5c Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 04 2021 06:16:41 +0000 Subject: Apply patch 0029-fix-rich-source-mac-with-nftables-backend.patch patch_name: 0029-fix-rich-source-mac-with-nftables-backend.patch present_in_specfile: true location_in_specfile: 29 --- diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py index 69ee63b..97b1cd9 100644 --- a/src/firewall/core/nftables.py +++ b/src/firewall/core/nftables.py @@ -1064,7 +1064,7 @@ class nftables(object): if addr_field == "daddr": raise FirewallError(INVALID_RULE, "%s._rule_addr_fragment()", (self.__class__)) family = "ether" - if check_single_address("ipv4", address): + elif check_single_address("ipv4", address): family = "ip" elif check_address("ipv4", address): family = "ip"