Fix nfset not binds to the rule (#1024)

This commit is contained in:
Givi Khojanashvili 2023-07-21 19:45:58 +04:00 committed by GitHub
parent a4d830ef83
commit 6ad3847615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)