Merge pull request #2600 from arkodg/fix-ipv6tables-panic
Make sure IPv6 is enabled for IP6tables
This commit is contained in:
commit
cf05dae77a
1 changed files with 2 additions and 2 deletions
|
@ -779,13 +779,13 @@ func (d *driver) createNetwork(config *networkConfiguration) (err error) {
|
|||
{d.config.EnableIPTables, network.setupIP4Tables},
|
||||
|
||||
// Setup IP6Tables.
|
||||
{d.config.EnableIP6Tables, network.setupIP6Tables},
|
||||
{config.EnableIPv6 && d.config.EnableIP6Tables, network.setupIP6Tables},
|
||||
|
||||
//We want to track firewalld configuration so that
|
||||
//if it is started/reloaded, the rules can be applied correctly
|
||||
{d.config.EnableIPTables, network.setupFirewalld},
|
||||
// same for IPv6
|
||||
{d.config.EnableIP6Tables, network.setupFirewalld6},
|
||||
{config.EnableIPv6 && d.config.EnableIP6Tables, network.setupFirewalld6},
|
||||
|
||||
// Setup DefaultGatewayIPv4
|
||||
{config.DefaultGatewayIPv4 != nil, setupGatewayIPv4},
|
||||
|
|
Loading…
Add table
Reference in a new issue