mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-23 23:29:15 +01:00
Fix nfset not binds to the rule (#1024)
This commit is contained in:
parent
a4d830ef83
commit
6ad3847615
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user