From 07e49336a903b79dbaa0341735f1efdc967b2ecc Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 14 2020 07:00:39 +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"