File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libnetwork/drivers/bridge Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 },
You can’t perform that action at this time.
0 commit comments