Skip to content

Commit b7c663c

Browse files
author
Arko Dasgupta
committed
Make sure IPv6 is enabled for IP6tables
Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com>
1 parent 5602e9b commit b7c663c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libnetwork/drivers/bridge/bridge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,13 +779,13 @@ func (d *driver) createNetwork(config *networkConfiguration) (err error) {
779779
{d.config.EnableIPTables, network.setupIP4Tables},
780780

781781
// Setup IP6Tables.
782-
{d.config.EnableIP6Tables, network.setupIP6Tables},
782+
{config.EnableIPv6 && d.config.EnableIP6Tables, network.setupIP6Tables},
783783

784784
//We want to track firewalld configuration so that
785785
//if it is started/reloaded, the rules can be applied correctly
786786
{d.config.EnableIPTables, network.setupFirewalld},
787787
// same for IPv6
788-
{d.config.EnableIP6Tables, network.setupFirewalld6},
788+
{config.EnableIPv6 && d.config.EnableIP6Tables, network.setupFirewalld6},
789789

790790
// Setup DefaultGatewayIPv4
791791
{config.DefaultGatewayIPv4 != nil, setupGatewayIPv4},

0 commit comments

Comments
 (0)