瀏覽代碼

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")