fix ipset busy error
This commit is contained in:
parent
afa1ae998a
commit
e04f651868
10
group.go
10
group.go
@ -70,16 +70,16 @@ func (g *Group) Disable() []error {
|
||||
return nil
|
||||
}
|
||||
|
||||
err := g.ipset.Destroy()
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
|
||||
errs2 := g.ifaceToIPSet.Disable()
|
||||
if errs2 != nil {
|
||||
errs = append(errs, errs2...)
|
||||
}
|
||||
|
||||
err := g.ipset.Destroy()
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
|
||||
g.Enabled = false
|
||||
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user