additional EnableIPTables check in isolateNetwork
Signed-off-by: Benjamin Böhmke <benjamin@boehmke.net>
This commit is contained in:
parent
a4fcced708
commit
1e1408f421
1 changed files with 4 additions and 1 deletions
|
@ -340,7 +340,10 @@ func (n *bridgeNetwork) isolateNetwork(others []*bridgeNetwork, enable bool) err
|
|||
}
|
||||
}
|
||||
|
||||
return setINC(iptables.IPv4, thisConfig.BridgeName, enable)
|
||||
if n.driver.config.EnableIPTables {
|
||||
return setINC(iptables.IPv4, thisConfig.BridgeName, enable)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (d *driver) configure(option map[string]interface{}) error {
|
||||
|
|
Loading…
Reference in a new issue