Skip to content

Commit

Permalink
Fix nfset not binds to the rule (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
gigovich authored Jul 21, 2023
1 parent a4d830e commit 6ad3847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/firewall/nftables/manager_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (m *Manager) AddFiltering(
// with fresh created set and set element

var isSetNew bool
ipset, err := m.rConn.GetSetByName(table, ipsetName)
ipset, err = m.rConn.GetSetByName(table, ipsetName)
if err != nil {
if ipset, err = m.createSet(table, rawIP, ipsetName); err != nil {
return nil, fmt.Errorf("get set name: %v", err)
Expand Down

0 comments on commit 6ad3847

Please sign in to comment.