mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #947 from aboch/iptfd
Make sure iptables chains are recreated on firewall reload
This commit is contained in:
commit
4cb61841e4
1 changed files with 2 additions and 0 deletions
|
@ -384,6 +384,8 @@ func (d *driver) configure(option map[string]interface{}) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Make sure on firewall reload, first thing being re-played is chains creation
|
||||
iptables.OnReloaded(func() { logrus.Debugf("Recreating iptables chains on firewall reload"); setupIPChains(config) })
|
||||
}
|
||||
|
||||
d.Lock()
|
||||
|
|
Loading…
Reference in a new issue