Skip to content

Commit

Permalink
Fix usage without network
Browse files Browse the repository at this point in the history
  • Loading branch information
iamluc committed Jul 30, 2016
1 parent 34f12b1 commit 797d705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Synchronizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private function getHostsLines($container)
*/
private function getContainerHosts($container)
{
$hosts = [substr($container->getName(), 1).$this->tld];
$hosts = [substr($container['Name'], 1).$this->tld];
if (isset($container['Config']['Env']) && is_array($container['Config']['Env'])) {
$env = $container['Config']['Env'];
foreach (preg_grep('/DOMAIN_NAME=/', $env) as $row) {
Expand Down

0 comments on commit 797d705

Please sign in to comment.