Fix network route adding rule to filter table (#1266)

Set filterTable only for ipv4 table
This commit is contained in:
Maycon Santos
2023-10-30 09:25:33 +01:00
committed by GitHub
parent e2eef4e3fd
commit 52f5101715
2 changed files with 3 additions and 2 deletions

View File

@@ -135,7 +135,8 @@ func (n *nftablesManager) RestoreOrCreateContainers() error {
}
for _, table := range tables {
if table.Name == "filter" {
if table.Name == "filter" && table.Family == nftables.TableFamilyIPv4 {
log.Debugf("nftables: found filter table for ipv4")
n.filterTable = table
continue
}