mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-10 03:47:03 +02:00
[client] Add missing peer ACL flush (#3247)
This commit is contained in:
parent
46766e7e24
commit
e20be2397c
@ -348,6 +348,10 @@ func (m *AclManager) addIOFiltering(
|
||||
UserData: userData,
|
||||
})
|
||||
|
||||
if err := m.rConn.Flush(); err != nil {
|
||||
return nil, fmt.Errorf(flushError, err)
|
||||
}
|
||||
|
||||
rule := &Rule{
|
||||
nftRule: nftRule,
|
||||
mangleRule: m.createPreroutingRule(expressions, userData),
|
||||
@ -359,6 +363,7 @@ func (m *AclManager) addIOFiltering(
|
||||
if ipset != nil {
|
||||
m.ipsetStore.AddReferenceToIpset(ipset.Name)
|
||||
}
|
||||
|
||||
return rule, nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user