31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From 53e62b6640c2d52ca6385120e3215b18d4ea70bf Mon Sep 17 00:00:00 2001
|
|
From: Eric Garver <eric@garver.life>
|
|
Date: Mon, 8 Jun 2020 14:58:50 -0400
|
|
Subject: [PATCH 29/45] fix(rich): source mac with nftables backend
|
|
|
|
Fixes: #643
|
|
Fixes: rhbz 1843398
|
|
Fixes: 1582c5dd736a ("feat: nftables: convert to libnftables JSON interface")
|
|
(cherry picked from commit e255e7357358b5fe1593225e6bd995850421825a)
|
|
(cherry picked from commit d78607ca4862a7b20551a98387ff285499d73440)
|
|
---
|
|
src/firewall/core/nftables.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py
|
|
index 69ee63b32f8b..97b1cd9f7f1e 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"
|
|
--
|
|
2.27.0
|
|
|