ソースを参照

remove redundant 'Get' for MacAddress

remove second redundant call to set MacAddress from env

Signed-off-by: Andrew Clay Shafer <andrewcshafer@gmail.com>
Andrew Clay Shafer 10 年 前
コミット
fa8560e385
1 ファイル変更0 行追加1 行削除
  1. 0 1
      daemon/container.go

+ 0 - 1
daemon/container.go

@@ -544,7 +544,6 @@ func (container *Container) AllocateNetwork() error {
 	container.NetworkSettings.IPPrefixLen = env.GetInt("IPPrefixLen")
 	container.NetworkSettings.MacAddress = env.Get("MacAddress")
 	container.NetworkSettings.Gateway = env.Get("Gateway")
-	container.NetworkSettings.MacAddress = env.Get("MacAddress")
 	container.NetworkSettings.LinkLocalIPv6Address = env.Get("LinkLocalIPv6")
 	container.NetworkSettings.LinkLocalIPv6PrefixLen = 64
 	container.NetworkSettings.GlobalIPv6Address = env.Get("GlobalIPv6")