Blame SOURCES/0003-fix-nftables-ipset-port-ranges-for-non-default-proto.patch

8072fb
From b2e4f83c8fb011ffe0a8b040fa937f60c842cc25 Mon Sep 17 00:00:00 2001
8072fb
From: Eric Garver <eric@garver.life>
8072fb
Date: Thu, 2 Apr 2020 14:42:22 -0400
8072fb
Subject: [PATCH 3/6] fix: nftables: ipset: port ranges for non-default
8072fb
 protocols
8072fb
8072fb
Fixes: 2d1b0fe9fe74 ("fix: nftables: allow set intervals with concatenations")
8072fb
(cherry picked from commit e80f4fccfc771128affdc578ed37842d5d469ca9)
8072fb
(cherry picked from commit 6a2fd018666ab8c4877291f8f807a9943db74de3)
8072fb
---
8072fb
 src/firewall/core/nftables.py | 2 +-
8072fb
 1 file changed, 1 insertion(+), 1 deletion(-)
8072fb
8072fb
diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py
8072fb
index a9d5a45337bd..69ee63b32f8b 100644
8072fb
--- a/src/firewall/core/nftables.py
8072fb
+++ b/src/firewall/core/nftables.py
8072fb
@@ -1680,7 +1680,7 @@ class nftables(object):
8072fb
                     port_str = entry_tokens[i][index+1:]
8072fb
 
8072fb
                 try:
8072fb
-                    index = entry_tokens[i].index("-")
8072fb
+                    index = port_str.index("-")
8072fb
                 except ValueError:
8072fb
                     fragment.append(port_str)
8072fb
                 else:
8072fb
-- 
8072fb
2.23.0
8072fb