1
0
Fork 0
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:
Madhu Venugopal 2016-02-11 21:25:24 -08:00
commit 4cb61841e4

View file

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